wfexs_backend.fetchers.sftp

wfexs_backend.fetchers.sftp#

Module Contents#

Functions#

sftpCopy

fetchSSHURL

Method to fetch contents from ssh / sftp servers

API#

wfexs_backend.fetchers.sftp.sftpCopy(sftp: paramiko.SFTPClient, sshPath: wfexs_backend.common.AbsPath, localPath: wfexs_backend.common.PathLikePath, sshStat: paramiko.SFTPAttributes | None = None) Tuple[int | Literal[False], ContentKind | None]#
wfexs_backend.fetchers.sftp.fetchSSHURL(remote_file: wfexs_backend.common.URIType, cachedFilename: wfexs_backend.common.PathLikePath, secContext: SecurityContextConfig | None = None) wfexs_backend.fetchers.ProtocolFetcherReturn#

Method to fetch contents from ssh / sftp servers

Parameters:
  • remote_file

  • cachedFilename – Destination filename for the fetched content

  • secContext – The security context containing the credentials