spurplus.sftp

Wrap paramiko.SFTP.

class spurplus.sftp.ReconnectingSFTP(sftp_opener, max_retries=10, retry_period=0.1)

Open automatically a new paramiko.SFTP on connection failure.

chmod(path, mode)

See paramiko.SFTP documentation.

chown(path, uid, gid)

See paramiko.SFTP documentation.

close()

Close the the underlying paramiko SFTP client.

Return type

None

get(remotepath, localpath, callback=None)

See paramiko.SFTP documentation.

listdir(path='.')

See paramiko.SFTP documentation.

listdir_attr(path='.')

See paramiko.SFTP documentation.

lstat(path)

See paramiko.SFTP documentation.

mkdir(path, mode=511)

See paramiko.SFTP documentation.

posix_rename(oldpath, newpath)

See paramiko.SFTP documentation.

put(localpath, remotepath, callback=None, confirm=True)

See paramiko.SFTP documentation.

remove(path)

See paramiko.SFTP documentation.

rmdir(path)

See paramiko.SFTP documentation.

stat(path)

See paramiko.SFTP documentation.

See paramiko.SFTP documentation.

See paramiko.SFTP documentation.