FtpItem Class
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9313)
Contains information about a single file or directory on the FTP server.
Syntax
public class FtpItem : FileSystemItem
Inherited Members
Constructors
| Name | Description |
|---|---|
| FtpItem(String, Int64, FtpItemType) | Initializes a new instance of the FtpItem class. |
| FtpItem(String, Int64, FtpItemType, DateTime, String) | Initializes a new instance of the FtpItem class. |
| FtpItem(String, Int64, FtpItemType, DateTime, String, Nullable<FtpItemPermissions>, String, String) | Initializes a new instance of the FtpItem class. |
| FtpItem(String, String, Int64, FtpItemType) | Initializes a new instance of the FtpItem class. |
| FtpItem(String, String, Int64, FtpItemType, DateTime, String) | Initializes a new instance of the FtpItem class. |
| FtpItem(String, String, Int64, FtpItemType, DateTime, String, Nullable<FtpItemPermissions>, String, String) | Initializes a new instance of the FtpItem class. |
Properties
| Name | Description |
|---|---|
| CreationTime | Gets the creation time of the item. |
| Group | Group identifier (Unix only). If null, the value was never assigned or successfully parsed. |
| 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. |
| Length | Gets the file length. |
| Name | Gets the name of the file or directory. |
| Owner | The owner of the file. If null, the value was never assigned or successfully parsed. |
| Path | Gets the path of the file or directory. It can be relative or absolute path depending on the way of use. |
| Permissions | The attributes (permissions) of the file. If null, the value was never assigned or successfully parsed. |
| SymlinkPath | Gets the path this item points to if it is symlink, null otherwise. |
| 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. |
| Parse(String) | Creates a new instance of the FtpItem class and initializes it with file info from a raw FTP list line. |
| Parse(String, FtpListingType) | Creates a new instance of the FtpItem class and initializes it with file info from a raw FTP list line. |
| ToString() | Returns the name of the item. |
Events
| Name | Description |
|---|---|
| ItemParse | Occurs when an item is being parsed. |