Struct ssh2::Sftp[][src]

pub struct Sftp { /* fields omitted */ }
Expand description

A handle to a remote filesystem over SFTP.

Instances are created through the sftp method on a Session.

Implementations

Open a handle to a file.

Helper to open a file in the Read mode.

Helper to create a file in write-only mode with truncation.

Helper to open a directory for reading its contents.

Convenience function to read the files in a directory.

The returned paths are all joined with dirname when returned, and the paths . and .. are filtered out of the returned list.

Create a directory on the remote file system.

Remove a directory from the remote file system.

Get the metadata for a file, performed by stat(2)

Get the metadata for a file, performed by lstat(2)

Set the metadata for a file.

Create a symlink at target pointing at path.

Read a symlink at path.

Resolve the real path for path.

Rename a filesystem object on the remote filesystem.

The semantics of this command typically include the ability to move a filesystem object between folders and/or filesystem mounts. If the Overwrite flag is not set and the destfile entry already exists, the operation will fail.

Use of the other flags (Native or Atomic) indicate a preference (but not a requirement) for the remote end to perform an atomic rename operation and/or using native system calls when possible.

If no flags are specified then all flags are used.

Remove a file on the remote filesystem

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.