Filesystem accessing an SFTP server (via paramiko)
A filesystem stored on a remote SFTP server.
This is basically a compatibility wrapper for the excellent SFTPClient class in the paramiko module.
SFTPFS constructor.
The only required argument is ‘connection’, which must be something from which we can construct a paramiko.SFTPClient object. Possible values include:
- a hostname string
- a (hostname,port) tuple
- a paramiko.Transport instance
- a paramiko.Channel instance in “sftp” mode
The keyword argument ‘root_path’ specifies the root directory on the remote machine - access to files outside this root will be prevented.
| Parameters: |
|
|---|
Close the connection to the remote server.