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

Represents an open sftp channel for performing filesystem operations

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 filesystem.

Remove a directory from the remote filesystem.

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 symlink at target pointing at path.

Read a symlink at path.

Resolve the real path for path.

Rename the filesystem object on the remote filesystem.

Remove a file on the remote filesystem.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.