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

Renci.SshNet.Sftp.SftpFileAttributes

public sealed class SftpFileAttributes
Contains SFTP file attributes.
namespace Renci.SshNet.Sftp { public sealed class SftpFileAttributes { public DateTime LastAccessTime { get; set; } public DateTime LastWriteTime { get; set; } public DateTime LastAccessTimeUtc { get; set; } public DateTime LastWriteTimeUtc { get; set; } public long Size { get; set; } public int UserId { get; set; } public int GroupId { get; set; } public bool IsSocket { get; } public bool IsSymbolicLink { get; } public bool IsRegularFile { get; } public bool IsBlockDevice { get; } public bool IsDirectory { get; } public bool IsCharacterDevice { get; } public bool IsNamedPipe { get; } public bool IsUIDBitSet { get; set; } public bool IsGroupIDBitSet { get; set; } public bool IsStickyBitSet { get; set; } public bool OwnerCanRead { get; set; } public bool OwnerCanWrite { get; set; } public bool OwnerCanExecute { get; set; } public bool GroupCanRead { get; set; } public bool GroupCanWrite { get; set; } public bool GroupCanExecute { get; set; } public bool OthersCanRead { get; set; } public bool OthersCanWrite { get; set; } public bool OthersCanExecute { get; set; } public IDictionary<string, string> Extensions { get; } public void SetPermissions(short mode); public byte[] GetBytes(); } }