C# Class UnifiedStorage.DotNet.DotNetFileSystem

A IFileSystem implementation base class for the classic .NET System.IO API.
Inheritance: IFileSystem
Mostra file Open project: fiveninedigital/UnifiedStorage

Public Methods

Method Description
CreatePath ( string path ) : IPath

Creates the path object from the given string.

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

Gets a folder, given its path.

GetFileFromPathAsync ( string path, CancellationToken cancellationToken ) : 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

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 ) : Task
path string The path to a file, as returned from the property.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task