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

ISftpFile

public interface ISftpFile
Represents SFTP file information.
using System; using System.Threading; using System.Threading.Tasks; namespace Renci.SshNet.Sftp { public interface ISftpFile { SftpFileAttributes Attributes { get; } string FullName { get; } string Name { get; } DateTime LastAccessTime { get; set; } DateTime LastWriteTime { get; set; } DateTime LastAccessTimeUtc { get; set; } DateTime LastWriteTimeUtc { get; set; } long Length { get; } int UserId { get; set; } int GroupId { get; set; } bool IsSocket { get; } bool IsSymbolicLink { get; } bool IsRegularFile { get; } bool IsBlockDevice { get; } bool IsDirectory { get; } bool IsCharacterDevice { get; } bool IsNamedPipe { get; } bool OwnerCanRead { get; set; } bool OwnerCanWrite { get; set; } bool OwnerCanExecute { get; set; } bool GroupCanRead { get; set; } bool GroupCanWrite { get; set; } bool GroupCanExecute { get; set; } bool OthersCanRead { get; set; } bool OthersCanWrite { get; set; } bool OthersCanExecute { get; set; } void SetPermissions(short mode); void Delete(); Task DeleteAsync(CancellationToken cancellationToken = default(CancellationToken)); void MoveTo(string destFileName); void UpdateStatus(); } }