Table of Contents

Struct SftpFileEntry

Namespace
Tmds.Ssh
Assembly
Tmds.Ssh.dll

Represents a filesystem entry during enumeration.

public ref struct SftpFileEntry
Inherited Members

Properties

FileName

Gets the file name without directory path.

public ReadOnlySpan<char> FileName { get; }

Property Value

ReadOnlySpan<char>

FileType

Gets the file type.

public readonly UnixFileType FileType { get; }

Property Value

UnixFileType

Gid

Gets the group ID.

public readonly int Gid { get; }

Property Value

int

LastAccessTime

Gets the last access time.

public readonly DateTimeOffset LastAccessTime { get; }

Property Value

DateTimeOffset

LastWriteTime

Gets the last write time.

public readonly DateTimeOffset LastWriteTime { get; }

Property Value

DateTimeOffset

Length

Gets the file length in bytes.

public readonly long Length { get; }

Property Value

long

Path

Gets the full path to the entry.

public ReadOnlySpan<char> Path { get; }

Property Value

ReadOnlySpan<char>

Permissions

Gets the file permissions.

public readonly UnixFilePermissions Permissions { get; }

Property Value

UnixFilePermissions

Uid

Gets the user ID.

public readonly int Uid { get; }

Property Value

int

Methods

ToAttributes()

Gets the attributes.

public FileEntryAttributes ToAttributes()

Returns

FileEntryAttributes

The FileEntryAttributes.

ToPath()

Gets the full path of the entry as a string.

public string ToPath()

Returns

string

The full path.