A local file system. More...
Public Member Functions | |
LocalStorage (string root) | |
Constructs a new instance of LocalStorage. More... | |
LocalStorage (string root, string baseUrl) | |
Constructs a new instance of LocalStorage. More... | |
async Task | CreateFolderAsync (string path, CancellationToken cancellationToken) |
Asynchronously creates new folder. More... | |
async Task | DeleteFileAsync (string path, CancellationToken cancellationToken) |
Asynchronously deletes a file. More... | |
async Task | DeleteFolderAsync (string path, CancellationToken cancellationToken) |
Asynchronously deletes a folder. More... | |
async Task | DeleteFolderAsync (string path, Action< int, int > progressAction, CancellationToken cancellationToken) |
Asynchronously deletes a folder. More... | |
async Task | MoveFileAsync (string srcPath, string destPath, CancellationToken cancellationToken) |
Asynchronously moves a file. More... | |
async Task | MoveFolderAsync (string srcPath, string destPath, CancellationToken cancellationToken) |
Asynchronously moves a folder. More... | |
async Task | MoveFolderAsync (string srcPath, string destPath, Action< int, int > progressAction, CancellationToken cancellationToken) |
Asynchronously moves a folder. More... | |
async Task | CopyFileAsync (string srcPath, string destPath, CancellationToken cancellationToken) |
Asynchronously copies a file. More... | |
async Task< bool > | FileExistsAsync (string path, CancellationToken cancellationToken) |
Asynchronously checks whether a file exists. More... | |
async Task< bool > | FolderExistsAsync (string path, CancellationToken cancellationToken) |
Asynchronously checks whether a folder exists. More... | |
async Task | WriteAsync (Stream fileStream, string path, CancellationToken cancellationToken) |
Asynchronously writes file content. More... | |
async Task< Stream > | ReadAsync (string path, CancellationToken cancellationToken) |
Asynchronously reads file content. More... | |
async Task< FolderListResult > | GetFolderInfosAsync (string path, CancellationToken cancellationToken) |
Asynchronously lists folder informations. More... | |
async Task< FolderListResult > | GetFolderInfosAsync (IFolderListContinuation folderListContinuation, CancellationToken cancellationToken) |
Asynchronously lists folder informations. More... | |
async Task< FileListResult > | GetFileInfosAsync (string path, CancellationToken cancellationToken) |
Asynchronously lists file informations. More... | |
async Task< FileListResult > | GetFileInfosAsync (IFileListContinuation fileListContinuation, CancellationToken cancellationToken) |
Asynchronously lists file informations. More... | |
async Task< FolderInfo > | GetFolderInfoAsync (string path, CancellationToken cancellationToken) |
Asychronously gets folder information. More... | |
async Task< FileInfo > | GetFileInfoAsync (string path, CancellationToken cancellationToken) |
Asychronously gets file information. More... | |
Task< string > | GetUrlAsync (string path, CancellationToken cancellationToken) |
Asynchronously gets resource URL. May return null if URL is not available. More... | |
A local file system.
|
inline |
Constructs a new instance of LocalStorage.
root | A path to the root of the file system. |
|
inline |
Constructs a new instance of LocalStorage.
root | A path to the root of the file system. |
baseUrl | A base URL for accessing files over the network. |
|
inline |
Asynchronously copies a file.
srcPath | A path to the file. |
destPath | A path to the destination file. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously creates new folder.
path | A path to the new folder. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously deletes a file.
path | A path to the file. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously deletes a folder.
path | A path to the folder. |
progressAction | An action fired when progress is updated. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously deletes a folder.
path | A path to the folder. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously checks whether a file exists.
path | A path to the file. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously checks whether a folder exists.
path | A path to the folder. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asychronously gets file information.
path | A path to the file. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously lists file informations.
fileListContinuation | A file list continuation. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously lists file informations.
path | A path to the folder. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asychronously gets folder information.
path | A path to the folder. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously lists folder informations.
folderListContinuation | A folder list continuation. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously lists folder informations.
path | A path to the folder. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously gets resource URL. May return null if URL is not available.
path | A path to the resource. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously moves a file.
srcPath | A path to the file. |
destPath | A path to the destination file. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously moves a folder.
srcPath | A path to the folder. |
destPath | A path to the destination folder. |
progressAction | An action fired when progress is updated. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously moves a folder.
srcPath | A path to the folder. |
destPath | A path to the destination folder. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously reads file content.
path | A path to the file. |
cancellationToken | A cancellation token. |
Implements IFileSystem.
|
inline |
Asynchronously writes file content.
fileStream | A stream with content to write. |
path | A path to the file. |
cancellationToken | A cancellation token. |
Implements IFileSystem.