A file system interface. More...
Public Member Functions | |
Task | CreateFolderAsync (string path, CancellationToken cancellationToken) |
Asynchronously creates new folder. More... | |
Task | DeleteFileAsync (string path, CancellationToken cancellationToken) |
Asynchronously deletes a file. More... | |
Task | DeleteFolderAsync (string path, CancellationToken cancellationToken) |
Asynchronously deletes a folder. More... | |
Task | DeleteFolderAsync (string path, Action< int, int > progressAction, CancellationToken cancellationToken) |
Asynchronously deletes a folder. More... | |
Task | MoveFileAsync (string srcPath, string destPath, CancellationToken cancellationToken) |
Asynchronously moves a file. More... | |
Task | MoveFolderAsync (string srcPath, string destPath, CancellationToken cancellationToken) |
Asynchronously moves a folder. More... | |
Task | MoveFolderAsync (string srcPath, string destPath, Action< int, int > progressAction, CancellationToken cancellationToken) |
Asynchronously moves a folder. More... | |
Task | CopyFileAsync (string srcPath, string destPath, CancellationToken cancellationToken) |
Asynchronously copies a file. More... | |
Task< bool > | FileExistsAsync (string path, CancellationToken cancellationToken) |
Asynchronously checks whether a file exists. More... | |
Task< bool > | FolderExistsAsync (string path, CancellationToken cancellationToken) |
Asynchronously checks whether a folder exists. More... | |
Task | WriteAsync (Stream fileStream, string path, CancellationToken cancellationToken) |
Asynchronously writes file content. More... | |
Task< Stream > | ReadAsync (string path, CancellationToken cancellationToken) |
Asynchronously reads file content. More... | |
Task< FolderListResult > | GetFolderInfosAsync (string path, CancellationToken cancellationToken) |
Asynchronously lists folder informations. More... | |
Task< FolderListResult > | GetFolderInfosAsync (IFolderListContinuation folderListContinuation, CancellationToken cancellationToken) |
Asynchronously lists folder informations. More... | |
Task< FileListResult > | GetFileInfosAsync (string path, CancellationToken cancellationToken) |
Asynchronously lists file informations. More... | |
Task< FileListResult > | GetFileInfosAsync (IFileListContinuation fileListContinuation, CancellationToken cancellationToken) |
Asynchronously lists file informations. More... | |
Task< FolderInfo > | GetFolderInfoAsync (string path, CancellationToken cancellationToken) |
Asychronously gets folder information. More... | |
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 file system interface.
Task CopyFileAsync | ( | string | srcPath, |
string | destPath, | ||
CancellationToken | cancellationToken | ||
) |
Asynchronously copies a file.
srcPath | A path to the file. |
destPath | A path to the destination file. |
cancellationToken | A cancellation token. |
Implemented in AmazonStorage, FtpStorage, AzureStorage, LocalStorage, and DropboxStorage.
Task CreateFolderAsync | ( | string | path, |
CancellationToken | cancellationToken | ||
) |
Asynchronously creates new folder.
path | A path to the new folder. |
cancellationToken | A cancellation token. |
Implemented in AmazonStorage, FtpStorage, LocalStorage, AzureStorage, and DropboxStorage.
Task DeleteFileAsync | ( | string | path, |
CancellationToken | cancellationToken | ||
) |
Asynchronously deletes a file.
path | A path to the file. |
cancellationToken | A cancellation token. |
Implemented in AmazonStorage, FtpStorage, LocalStorage, AzureStorage, and DropboxStorage.
Task DeleteFolderAsync | ( | string | path, |
Action< int, int > | progressAction, | ||
CancellationToken | cancellationToken | ||
) |
Asynchronously deletes a folder.
path | A path to the folder. |
progressAction | An action fired when progress is updated. |
cancellationToken | A cancellation token. |
Implemented in FtpStorage, AmazonStorage, LocalStorage, AzureStorage, and DropboxStorage.
Task DeleteFolderAsync | ( | string | path, |
CancellationToken | cancellationToken | ||
) |
Asynchronously deletes a folder.
path | A path to the folder. |
cancellationToken | A cancellation token. |
Implemented in FtpStorage, AmazonStorage, LocalStorage, AzureStorage, and DropboxStorage.
Task<bool> FileExistsAsync | ( | string | path, |
CancellationToken | cancellationToken | ||
) |
Asynchronously checks whether a file exists.
path | A path to the file. |
cancellationToken | A cancellation token. |
Implemented in AmazonStorage, FtpStorage, AzureStorage, LocalStorage, and DropboxStorage.
Task<bool> FolderExistsAsync | ( | string | path, |
CancellationToken | cancellationToken | ||
) |
Asynchronously checks whether a folder exists.
path | A path to the folder. |
cancellationToken | A cancellation token. |
Implemented in AmazonStorage, FtpStorage, AzureStorage, LocalStorage, and DropboxStorage.
Task<FileInfo> GetFileInfoAsync | ( | string | path, |
CancellationToken | cancellationToken | ||
) |
Asychronously gets file information.
path | A path to the file. |
cancellationToken | A cancellation token. |
Implemented in FtpStorage, AmazonStorage, LocalStorage, AzureStorage, and DropboxStorage.
Task<FileListResult> GetFileInfosAsync | ( | IFileListContinuation | fileListContinuation, |
CancellationToken | cancellationToken | ||
) |
Asynchronously lists file informations.
fileListContinuation | A file list continuation. |
cancellationToken | A cancellation token. |
Implemented in FtpStorage, AmazonStorage, LocalStorage, AzureStorage, and DropboxStorage.
Task<FileListResult> GetFileInfosAsync | ( | string | path, |
CancellationToken | cancellationToken | ||
) |
Asynchronously lists file informations.
path | A path to the folder. |
cancellationToken | A cancellation token. |
Implemented in FtpStorage, AmazonStorage, LocalStorage, AzureStorage, and DropboxStorage.
Task<FolderInfo> GetFolderInfoAsync | ( | string | path, |
CancellationToken | cancellationToken | ||
) |
Asychronously gets folder information.
path | A path to the folder. |
cancellationToken | A cancellation token. |
Implemented in FtpStorage, AmazonStorage, LocalStorage, AzureStorage, and DropboxStorage.
Task<FolderListResult> GetFolderInfosAsync | ( | IFolderListContinuation | folderListContinuation, |
CancellationToken | cancellationToken | ||
) |
Asynchronously lists folder informations.
folderListContinuation | A folder list continuation. |
cancellationToken | A cancellation token. |
Implemented in FtpStorage, AmazonStorage, LocalStorage, AzureStorage, and DropboxStorage.
Task<FolderListResult> GetFolderInfosAsync | ( | string | path, |
CancellationToken | cancellationToken | ||
) |
Asynchronously lists folder informations.
path | A path to the folder. |
cancellationToken | A cancellation token. |
Implemented in FtpStorage, AmazonStorage, LocalStorage, AzureStorage, and DropboxStorage.
Task<string> GetUrlAsync | ( | string | path, |
CancellationToken | cancellationToken | ||
) |
Asynchronously gets resource URL. May return null if URL is not available.
path | A path to the resource. |
cancellationToken | A cancellation token. |
Implemented in FtpStorage, AmazonStorage, LocalStorage, AzureStorage, and DropboxStorage.
Task MoveFileAsync | ( | string | srcPath, |
string | destPath, | ||
CancellationToken | cancellationToken | ||
) |
Asynchronously moves a file.
srcPath | A path to the file. |
destPath | A path to the destination file. |
cancellationToken | A cancellation token. |
Implemented in AmazonStorage, FtpStorage, AzureStorage, LocalStorage, and DropboxStorage.
Task MoveFolderAsync | ( | string | srcPath, |
string | destPath, | ||
Action< int, int > | progressAction, | ||
CancellationToken | cancellationToken | ||
) |
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. |
Implemented in AmazonStorage, FtpStorage, AzureStorage, LocalStorage, and DropboxStorage.
Task MoveFolderAsync | ( | string | srcPath, |
string | destPath, | ||
CancellationToken | cancellationToken | ||
) |
Asynchronously moves a folder.
srcPath | A path to the folder. |
destPath | A path to the destination folder. |
cancellationToken | A cancellation token. |
Implemented in AmazonStorage, FtpStorage, AzureStorage, LocalStorage, and DropboxStorage.
Task<Stream> ReadAsync | ( | string | path, |
CancellationToken | cancellationToken | ||
) |
Asynchronously reads file content.
path | A path to the file. |
cancellationToken | A cancellation token. |
Implemented in AmazonStorage, FtpStorage, AzureStorage, LocalStorage, and DropboxStorage.
Task WriteAsync | ( | Stream | fileStream, |
string | path, | ||
CancellationToken | cancellationToken | ||
) |
Asynchronously writes file content.
fileStream | A stream with content to write. |
path | A path to the file. |
cancellationToken | A cancellation token. |
Implemented in AmazonStorage, FtpStorage, AzureStorage, LocalStorage, and DropboxStorage.