SftpItem Class
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9119)
Contains information about a single file or directory on the SFTP server.
Syntax
public class SftpItem : FileSystemItem
Inherited Members
Constructors
Name | Description |
---|---|
SftpItem(String, Int64, SftpItemType, Nullable<DateTime>, Nullable<DateTime>) | Initializes a new instance of the SftpItem class. |
SftpItem(String, Int64, SftpItemType, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>) | Initializes a new instance of the SftpItem class. |
SftpItem(String, String, Int64, SftpItemType, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>) | Initializes a new instance of the SftpItem class. |
Properties
Name | Description |
---|---|
CreationTime | Gets the creation time of the item. Inherited from FileSystemItem. |
Group | Gets the group of the file. Contains the group name on SFTP v4 servers and group ID on SFTP v3 servers. |
GroupId | Gets the group ID of the file. Only available on SFTP v3 servers. |
IsDirectory | Gets the flag indicating whether the item might be a directory. |
IsFile | Gets the flag indicating whether the item might be a file. |
IsLink | Gets a value indicating whether the item is a link. |
LastAccessTime | Gets the last access time of the item. Inherited from FileSystemItem. |
LastWriteTime | Gets the last modification time of the item. Inherited from FileSystemItem. |
Length | Gets the file length. |
Name | Gets the name of the file or directory. |
Owner | Gets the owner of the file. Contains the owner name on SFTP v4 servers and owner ID on SFTP v3 servers. |
OwnerId | Gets the owner ID of the file. Only available on SFTP v3 servers. |
Path | Gets the path of the file or directory. |
Permissions | Gets the Unix/SFTP permissions. |
Type | Gets the type of the item. |
Methods
Name | Description |
---|---|
GetCreationTime() | Gets the creation time of the item. |
GetLastAccessTime() | Gets the last access time of the item. |
GetLastWriteTime() | Gets the last modification time of the item. |
ToString() | Returns the name of the item. |