Table of Contents

Class SftpFileAttributes

Namespace
Renci.SshNet.Sftp
Assembly
Renci.SshNet.dll

Contains SFTP file attributes.

public class SftpFileAttributes
Inheritance
SftpFileAttributes
Inherited Members

Properties

Extensions

Gets the extensions.

public IDictionary<string, string> Extensions { get; }

Property Value

IDictionary<string, string>

The extensions.

GroupCanExecute

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

public bool GroupCanExecute { get; set; }

Property Value

bool

true if group members can execute this file; otherwise, false.

GroupCanRead

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

public bool GroupCanRead { get; set; }

Property Value

bool

true if group members can read from this file; otherwise, false.

GroupCanWrite

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

public bool GroupCanWrite { get; set; }

Property Value

bool

true if group members can write into this file; otherwise, false.

GroupId

Gets or sets file group id.

public int GroupId { get; set; }

Property Value

int

File group id.

IsBlockDevice

Gets a value indicating whether file represents a block device.

public bool IsBlockDevice { get; }

Property Value

bool

true if file represents a block device; otherwise, false.

IsCharacterDevice

Gets a value indicating whether file represents a character device.

public bool IsCharacterDevice { get; }

Property Value

bool

true if file represents a character device; otherwise, false.

IsDirectory

Gets a value indicating whether file represents a directory.

public bool IsDirectory { get; }

Property Value

bool

true if file represents a directory; otherwise, false.

IsNamedPipe

Gets a value indicating whether file represents a named pipe.

public bool IsNamedPipe { get; }

Property Value

bool

true if file represents a named pipe; otherwise, false.

IsRegularFile

Gets a value indicating whether file represents a regular file.

public bool IsRegularFile { get; }

Property Value

bool

true if file represents a regular file; otherwise, false.

IsSocket

Gets a value indicating whether file represents a socket.

public bool IsSocket { get; }

Property Value

bool

true if file represents a socket; otherwise, false.

Gets a value indicating whether file represents a symbolic link.

public bool IsSymbolicLink { get; }

Property Value

bool

true if file represents a symbolic link; otherwise, false.

LastAccessTime

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

public DateTime LastAccessTime { get; set; }

Property Value

DateTime

The local time that the current file or directory was last accessed.

LastAccessTimeUtc

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

public DateTime LastAccessTimeUtc { get; set; }

Property Value

DateTime

The UTC time that the current file or directory was last accessed.

LastWriteTime

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

public DateTime LastWriteTime { get; set; }

Property Value

DateTime

The local time the current file was last written.

LastWriteTimeUtc

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

public DateTime LastWriteTimeUtc { get; set; }

Property Value

DateTime

The UTC time the current file was last written.

OthersCanExecute

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

public bool OthersCanExecute { get; set; }

Property Value

bool

true if others can execute this file; otherwise, false.

OthersCanRead

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

public bool OthersCanRead { get; set; }

Property Value

bool

true if others can read from this file; otherwise, false.

OthersCanWrite

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

public bool OthersCanWrite { get; set; }

Property Value

bool

true if others can write into this file; otherwise, false.

OwnerCanExecute

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

public bool OwnerCanExecute { get; set; }

Property Value

bool

true if owner can execute this file; otherwise, false.

OwnerCanRead

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

public bool OwnerCanRead { get; set; }

Property Value

bool

true if owner can read from this file; otherwise, false.

OwnerCanWrite

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

public bool OwnerCanWrite { get; set; }

Property Value

bool

true if owner can write into this file; otherwise, false.

Size

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

public long Size { get; set; }

Property Value

long

The size of the current file in bytes.

UserId

Gets or sets file user id.

public int UserId { get; set; }

Property Value

int

File user id.

Methods

GetBytes()

Returns a byte array representing the current SftpFileAttributes.

public byte[] GetBytes()

Returns

byte[]

A byte array representing the current SftpFileAttributes.

SetPermissions(short)

Sets the permissions.

public void SetPermissions(short mode)

Parameters

mode short

The mode.