ddn.net.sftp.types
SFTP version 3 protocol types (draft-ietf-secsh-filexfer-02).
Constants, attribute records, status codes, open flags, and the result types used across the SFTP client. Pure data definitions with no dependency on any concrete SSH implementation.
Types 14
Initial OpenSSH extension names advertised through VERSION.
Filesystem information reported by statvfs@openssh.com and fstatvfs@openssh.com version 2.
All fields are 64-bit as transmitted; flag carries the server's mount flag bits verbatim, including any bits unknown to this client.
ulong blockSizeOptimal transfer block sizeulong fragmentSizeFundamental filesystem block sizeulong blocksTotal data blocks (in fragmentSize units)ulong blocksFreeFree blocksulong blocksAvailableFree blocks available to unprivileged usersulong filesTotal file nodesulong filesFreeFree file nodesulong filesAvailableFile nodes available to unprivileged usersulong filesystemIdFilesystem identifierulong flagMount flag bits (see SftpStatVfsFlags); unknown bits are preservedulong nameMaxMaximum filename lengthKnown mount flag bits for SftpStatVfs.flag.
Server limits reported by limits@openssh.com version 1.
A zero field means the server imposes no limit beyond the protocol; the client always constrains requests with its own local bounds.
ulong maxPacketMaximum total SFTP packet size the server accepts (0 = unlimited)ulong maxReadMaximum READ data length (0 = unlimited)ulong maxWriteMaximum WRITE data length (0 = unlimited)ulong maxOpenHandlesMaximum simultaneously open handles (0 = unlimited); optional field reported by newer serversArgument order used by the version 3 SYMLINK request.
SFTP packet types (client and server).
SFTP status/error codes (draft section 7).
SFTP open flags (draft section 6.3).
File attribute flags (draft section 5).
POSIX file type bits for permission fields.
File attributes as transmitted in SFTP v3.
uint flagsRaw flags present in this attribute setulong sizeFile size in bytes (valid when flags includes size)uint uidOwning user id (valid when flags includes uidgid)uint gidOwning group id (valid when flags includes uidgid)uint permissionsPermission bits including file type (valid when flags includes permissions)uint atimeLast access time in seconds since epoch (valid when flags includes acmodtime)uint mtimeLast modification time in seconds since epoch (valid when flags includes acmodtime)SftpExtendedAttribute[] extendedVendor-specific attributes, preserved as protocol bytesbool hasPermissions() const pure nothrow @safe @nogcReturns: true when the permissions field is present.bool hasAcModTime() const pure nothrow @safe @nogcReturns: true when atime/mtime fields are present.uint fileType() const pure nothrow @safe @nogcReturns: the file type portion of permissions, or 0 when absent.One vendor-specific attribute pair.
immutable(ubyte)[] typeExtension type bytesimmutable(ubyte)[] dataExtension value bytesOne directory entry from a READDIR response.
immutable(ubyte)[] nameEntry name bytes (a single remote path component)immutable(ubyte)[] longnameServer-formatted long listing bytes (advisory only)SftpAttrs attrsEntry attributesServer-reported status of an operation.