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

SftpSession

public uint NextRequestId { get; }

public uint ProtocolVersion { get; }

public string WorkingDirectory { get; }

public SftpSession(ISession session, int operationTimeout, Encoding encoding, ISftpResponseFactory sftpResponseFactory)

public SftpCloseAsyncResult BeginClose(byte[] handle, AsyncCallback callback, object state)

public SFtpStatAsyncResult BeginLStat(string path, AsyncCallback callback, object state)

public SftpOpenAsyncResult BeginOpen(string path, Flags flags, AsyncCallback callback, object state)

public SftpReadAsyncResult BeginRead(byte[] handle, ulong offset, uint length, AsyncCallback callback, object state)

public SftpRealPathAsyncResult BeginRealPath(string path, AsyncCallback callback, object state)

public SFtpStatAsyncResult BeginStat(string path, AsyncCallback callback, object state)

public uint CalculateOptimalReadLength(uint bufferSize)

public uint CalculateOptimalWriteLength(uint bufferSize, byte[] handle)

public void ChangeDirectory(string path)

public ISftpFileReader CreateFileReader(byte[] handle, ISftpSession sftpSession, uint chunkSize, int maxPendingReads, long? fileSize)

public void EndClose(SftpCloseAsyncResult asyncResult)

public byte[] EndOpen(SftpOpenAsyncResult asyncResult)

public byte[] EndRead(SftpReadAsyncResult asyncResult)

public string EndRealPath(SftpRealPathAsyncResult asyncResult)

public string GetCanonicalPath(string path)

public Task<string> GetCanonicalPathAsync(string path, CancellationToken cancellationToken)

public void RequestClose(byte[] handle)

public Task RequestCloseAsync(byte[] handle, CancellationToken cancellationToken)

public void RequestFSetStat(byte[] handle, SftpFileAttributes attributes)

public SftpFileAttributes RequestFStat(byte[] handle, bool nullOnError)

public Task<SftpFileAttributes> RequestFStatAsync(byte[] handle, CancellationToken cancellationToken)

public SftpFileAttributes RequestLStat(string path)

public void RequestMkDir(string path)

public byte[] RequestOpen(string path, Flags flags, bool nullOnError = false)

public Task<byte[]> RequestOpenAsync(string path, Flags flags, CancellationToken cancellationToken)

public byte[] RequestOpenDir(string path, bool nullOnError = false)

public Task<byte[]> RequestOpenDirAsync(string path, CancellationToken cancellationToken)

public void RequestPosixRename(string oldPath, string newPath)

public byte[] RequestRead(byte[] handle, ulong offset, uint length)

public Task<byte[]> RequestReadAsync(byte[] handle, ulong offset, uint length, CancellationToken cancellationToken)

public KeyValuePair<string, SftpFileAttributes>[] RequestReadDir(byte[] handle)

public Task<KeyValuePair<string, SftpFileAttributes>[]> RequestReadDirAsync(byte[] handle, CancellationToken cancellationToken)

public void RequestRemove(string path)

public Task RequestRemoveAsync(string path, CancellationToken cancellationToken)

public void RequestRename(string oldPath, string newPath)

public Task RequestRenameAsync(string oldPath, string newPath, CancellationToken cancellationToken)

public void RequestRmDir(string path)

public void RequestSetStat(string path, SftpFileAttributes attributes)

public SftpFileAttributes RequestStat(string path, bool nullOnError = false)

public SftpFileSytemInformation RequestStatVfs(string path, bool nullOnError = false)

public Task<SftpFileSytemInformation> RequestStatVfsAsync(string path, CancellationToken cancellationToken)

public void RequestSymLink(string linkpath, string targetpath)

public void RequestWrite(byte[] handle, ulong serverOffset, byte[] data, int offset, int length, AutoResetEvent wait, Action<SftpStatusResponse> writeCompleted = null)

public Task RequestWriteAsync(byte[] handle, ulong serverOffset, byte[] data, int offset, int length, CancellationToken cancellationToken)