<PackageReference Include="SSH.NET" Version="2024.0.0" />

SftpFileStream

public class SftpFileStream : Stream
Exposes a Stream around a remote SFTP file, supporting both synchronous and asynchronous read and write operations.
public virtual byte[] Handle { get; }

Gets the operating system file handle for the file that the current SftpFileStream encapsulates.

public string Name { get; }

Gets the name of the path that was used to construct the current SftpFileStream.

public TimeSpan Timeout { get; set; }

Gets or sets the operation timeout.