Interface IFileSystemIOSystem
The FileSystemIO Interface for the Xbox system. Implements the IFileSystemIO Interface, adding the ability to get system drives from a device.
Namespace: Phoenix.DeviceStorage
Assembly: Phoenix.Abstractions.DeviceStorage.dll
Syntax
public interface IFileSystemIOSystem
Methods
View SourceCopySystemDirectoryAsync(PhoenixPath, PhoenixPath)
Copies a directory from source to destination.
Declaration
Task CopySystemDirectoryAsync(PhoenixPath source, PhoenixPath destination)
Parameters
Type | Name | Description |
---|---|---|
PhoenixPath | source | Directory source. |
PhoenixPath | destination | Copy destination. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the result of the asynchronous operation. |
CopySystemFileAsync(PhoenixPath, PhoenixPath)
Copies a file from source to destination.
Declaration
Task CopySystemFileAsync(PhoenixPath source, PhoenixPath destination)
Parameters
Type | Name | Description |
---|---|---|
PhoenixPath | source | File source. |
PhoenixPath | destination | Copy destination. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the result of the asynchronous operation. |
CreateSystemDirectoryAsync(PhoenixPath)
Creates a directory.
Declaration
Task CreateSystemDirectoryAsync(PhoenixPath path)
Parameters
Type | Name | Description |
---|---|---|
PhoenixPath | path | The directory to create. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the result of the asynchronous operation. |
CreateSystemFileAsync(PhoenixPath)
Creates a file.
Declaration
Task CreateSystemFileAsync(PhoenixPath path)
Parameters
Type | Name | Description |
---|---|---|
PhoenixPath | path | The file to create. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the result of the asynchronous operation. |
DeleteSystemDirectoryAsync(PhoenixPath)
Deletes a Directory.
Declaration
Task DeleteSystemDirectoryAsync(PhoenixPath path)
Parameters
Type | Name | Description |
---|---|---|
PhoenixPath | path | The directory to delete. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the result of the asynchronous operation. |
DeleteSystemFileAsync(PhoenixPath)
Deletes a file.
Declaration
Task DeleteSystemFileAsync(PhoenixPath path)
Parameters
Type | Name | Description |
---|---|---|
PhoenixPath | path | The file to delete. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the result of the asynchronous operation. |
FindSystemFilesAsync(PhoenixPath, String)
Recursively looks through the directories under the specified path
for files matching the specified pattern
.
Declaration
Task<IEnumerable<PhoenixFileInfo>> FindSystemFilesAsync(PhoenixPath path, string pattern)
Parameters
Type | Name | Description |
---|---|---|
PhoenixPath | path | Base path to start the search from. |
System.String | pattern | Pattern to look for in file names, e.g. FileNam.txt No regular expressions. Simple file lookup. Can use wildcard (). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixFileInfo>> | A list of the files that were found. Empty if none. |
GetApplicationDirectoriesAsync()
Gets the directories containing a manifest file from the scratch drive.
Declaration
Task<IEnumerable<PhoenixDirectoryInfo>> GetApplicationDirectoriesAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixDirectoryInfo>> | A list of the directories that were found. Empty if none. |
GetDirectSystemPath(PhoenixPath)
Gets the direct path on the local file system or UNC path.
Declaration
PhoenixPath GetDirectSystemPath(PhoenixPath path)
Parameters
Type | Name | Description |
---|---|---|
PhoenixPath | path | The path to translate |
Returns
Type | Description |
---|---|
PhoenixPath | The local file system or UNC path of path; null if not supported |
GetScratchDriveAsync()
Gets the scratch drive.
Declaration
Task<PhoenixDirectoryInfo> GetScratchDriveAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<PhoenixDirectoryInfo> | PhoenixDirectoryInfo for the scratch drive. |
GetSystemDirectoriesAsync(PhoenixPath)
Gets the directories from a path.
Declaration
Task<IEnumerable<PhoenixDirectoryInfo>> GetSystemDirectoriesAsync(PhoenixPath path)
Parameters
Type | Name | Description |
---|---|---|
PhoenixPath | path | The path to get directories from. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixDirectoryInfo>> | An IEnumerable of PhoenixDirectoryInfo. |
GetSystemDrivesAsync()
Gets the drives of the Xbox system.
Declaration
Task<IEnumerable<PhoenixDirectoryInfo>> GetSystemDrivesAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixDirectoryInfo>> | An IEnumerable of PhoenixDirectoryInfo representing the drives. |
GetSystemFilesAsync(PhoenixPath)
Gets the files from a path.
Declaration
Task<IEnumerable<PhoenixFileInfo>> GetSystemFilesAsync(PhoenixPath path)
Parameters
Type | Name | Description |
---|---|---|
PhoenixPath | path | The path to get files from. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixFileInfo>> | An IEnumerable of PhoenixFileInfo. |
SystemDirectoryExistsAsync(PhoenixPath)
Checks if a directory exists.
Declaration
Task<bool> SystemDirectoryExistsAsync(PhoenixPath path)
Parameters
Type | Name | Description |
---|---|---|
PhoenixPath | path | The path to check. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | True if directory exists, false otherwise. |
SystemFileExistsAsync(PhoenixPath)
Checks if a file exists.
Declaration
Task<bool> SystemFileExistsAsync(PhoenixPath path)
Parameters
Type | Name | Description |
---|---|---|
PhoenixPath | path | The path to check. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | True if file exists, false otherwise. |