Show / Hide Table of Contents

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 Source

AppPackageDirectoryExists(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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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

View Source

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.

View Source

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

  • View Source
In This Article
Back to top Generated by DocFX