Class FileSystemItem
File system item for files on a device.
Inherited Members
Namespace: Phoenix.DeviceStorage
Assembly: Phoenix.Plugin.DeviceStorage.dll
Syntax
public class FileSystemItem : FileSystemItemBase
Constructors
View SourceFileSystemItem(PhoenixFileInfo, FileSystemItemBase, IDevice, IDeviceStorageManager)
Initializes a new instance of the FileSystemItem class.
Declaration
public FileSystemItem(PhoenixFileInfo file, FileSystemItemBase parent, IDevice device, IDeviceStorageManager fileManager)
Parameters
Type | Name | Description |
---|---|---|
PhoenixFileInfo | file | The PhoenixFileInfo object this file is for. |
FileSystemItemBase | parent | The parent directory for this file. |
IDevice | device | The device this file is on. |
IDeviceStorageManager | fileManager | The file manager to use for IO. |
Properties
View SourceCreated
Gets the date this file was created.
Declaration
public DateTime Created { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
FileInfo
Gets the PhoenixFileInfo for the FileSystemItem.
Declaration
public PhoenixFileInfo FileInfo { get; }
Property Value
Type | Description |
---|---|
PhoenixFileInfo |
LastWriteTime
Gets the date the file was last written to.
Declaration
public DateTime LastWriteTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Size
Gets the size in bytes of the file.
Declaration
public long Size { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
View SourceLoadAllChildrenAsync()
Does nothing since files can't have children.
Declaration
protected override Task<Collection<FileSystemItemBase>> LoadAllChildrenAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.ObjectModel.Collection<FileSystemItemBase>> | An empty collection. |
Overrides
View SourceLoadDirectoriesAsync()
Does nothing since files can't have children.
Declaration
protected override Task<Collection<FileSystemItemBase>> LoadDirectoriesAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.ObjectModel.Collection<FileSystemItemBase>> | An empty collection. |