<PackageReference Include="SSH.NET" Version="2016.0.0-beta1" />

SftpFileAttributes

public class SftpFileAttributes
Contains SFTP file attributes.
public IDictionary<string, string> Extensions { get; }

Gets or sets the extensions.

public bool GroupCanExecute { get; set; }

Gets a value indicating whether the group members can execute this file.

public bool GroupCanRead { get; set; }

Gets a value indicating whether the group members can read from this file.

public bool GroupCanWrite { get; set; }

Gets a value indicating whether the group members can write into this file.

public int GroupId { get; set; }

Gets or sets file group id.

public bool IsBlockDevice { get; }

Gets a value indicating whether file represents a block device.

public bool IsCharacterDevice { get; }

Gets a value indicating whether file represents a character device.

public bool IsDirectory { get; }

Gets a value indicating whether file represents a directory.

public bool IsNamedPipe { get; }

Gets a value indicating whether file represents a named pipe.

public bool IsRegularFile { get; }

Gets a value indicating whether file represents a regular file.

public bool IsSocket { get; }

Gets a value indicating whether file represents a socket.

public bool IsSymbolicLink { get; }

Gets a value indicating whether file represents a symbolic link.

public DateTime LastAccessTime { get; set; }

Gets or sets the time the current file or directory was last accessed.

public DateTime LastWriteTime { get; set; }

Gets or sets the time when the current file or directory was last written to.

public bool OthersCanExecute { get; set; }

Gets a value indicating whether the others can execute this file.

public bool OthersCanRead { get; set; }

Gets a value indicating whether the others can read from this file.

public bool OthersCanWrite { get; set; }

Gets a value indicating whether the others can write into this file.

public bool OwnerCanExecute { get; set; }

Gets a value indicating whether the owner can execute this file.

public bool OwnerCanRead { get; set; }

Gets a value indicating whether the owner can read from this file.

public bool OwnerCanWrite { get; set; }

Gets a value indicating whether the owner can write into this file.

public long Size { get; set; }

Gets or sets the size, in bytes, of the current file.

public int UserId { get; set; }

Gets or sets file user id.

public byte[] GetBytes()

Returns a byte array representing the current SftpFileAttributes.

public void SetPermissions(short mode)

Sets the permissions.