C# Class UnifiedStorage.WindowsStorage.FileSystem

A IFileSystem implementation for the Windows Storage API.
Inheritance: IFileSystem
Exibir arquivo Open project: fiveninedigital/UnifiedStorage

Public Methods

Method Description
CreatePath ( string path ) : IPath

Creates the path object from the given string.

FileSystem ( ) : System

Initializes a new instance of the FileSystem class.

GetDirectoryFromPathAsync ( string path, CancellationToken cancellationToken = newCancellationToken() ) : Task

Gets a folder, given its path.

GetFileFromPathAsync ( string path, CancellationToken cancellationToken = newCancellationToken() ) : Task

Gets a file, given its path.

Method Details

CreatePath() public method

Creates the path object from the given string.
public CreatePath ( string path ) : IPath
path string The path to create.
return IPath

FileSystem() public method

Initializes a new instance of the FileSystem class.
public FileSystem ( ) : System
return System

GetDirectoryFromPathAsync() public method

Gets a folder, given its path.
public GetDirectoryFromPathAsync ( string path, CancellationToken cancellationToken = newCancellationToken() ) : Task
path string The path to a directory, as returned from the property.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task

GetFileFromPathAsync() public method

Gets a file, given its path.
public GetFileFromPathAsync ( string path, CancellationToken cancellationToken = newCancellationToken() ) : Task
path string The path to a file, as returned from the property.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task