Interface IFileSystemIOAppPackage
The FileSystemIO interface for App Packages. Implements the IFileSystemIO Interface, adding the ability to get packages from a device.
Namespace: Phoenix.DeviceStorage
Assembly: Phoenix.Abstractions.DeviceStorage.dll
Syntax
public interface IFileSystemIOAppPackage
Methods
View SourceAppPackageDirectoryExists(PhoenixPath)
Checks if a directory exists.
Declaration
Task<bool> AppPackageDirectoryExists(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. |
AppPackageFileExistsAsync(PhoenixPath)
Checks if a file exists.
Declaration
Task<bool> AppPackageFileExistsAsync(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. |
CopyAppPackageDirectoryAsync(PhoenixPath, PhoenixPath)
Copies a directory from source to destination.
Declaration
Task CopyAppPackageDirectoryAsync(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. |
CopyAppPackageFileAsync(PhoenixPath, PhoenixPath)
Copies a file from source to destination.
Declaration
Task CopyAppPackageFileAsync(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. |
CreateAppPackageDirectoryAsync(PhoenixPath)
Creates a directory.
Declaration
Task CreateAppPackageDirectoryAsync(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. |
CreateAppPackageFileAsync(PhoenixPath)
Creates a file.
Declaration
Task CreateAppPackageFileAsync(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. |
DeleteAppPackageDirectoryAsync(PhoenixPath)
Deletes a Directory.
Declaration
Task DeleteAppPackageDirectoryAsync(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. |
DeleteAppPackageFileAsync(PhoenixPath)
Deletes a file.
Declaration
Task DeleteAppPackageFileAsync(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. |
GetAppPackageDirectoriesAsync(PhoenixPath)
Gets the directories from a path.
Declaration
Task<IEnumerable<PhoenixDirectoryInfo>> GetAppPackageDirectoriesAsync(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. |
GetAppPackageFilesAsync(PhoenixPath)
Gets the files from a path.
Declaration
Task<IEnumerable<PhoenixFileInfo>> GetAppPackageFilesAsync(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. |
GetAppPackageMetadataAsync(PhoenixPath)
Gets the packages metadata from a path.
Declaration
Task<Dictionary<string, string>> GetAppPackageMetadataAsync(PhoenixPath path)
Parameters
Type | Name | Description |
---|---|---|
PhoenixPath | path | The path to the app package. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<System.String, System.String>> | Metadata in the form of a string |
GetAppPackagesAsync()
Gets the packages from a device.
Declaration
Task<IEnumerable<PhoenixDirectoryInfo>> GetAppPackagesAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixDirectoryInfo>> | An IEnumerable of boxed packages. |
GetDirectAppPackagePath(PhoenixPath)
Gets the direct path on the local file system or UNC path.
Declaration
PhoenixPath GetDirectAppPackagePath(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 |