A FTP file system. More...
Public Member Functions | |
FtpStorage (string host, string port, string userName, string password, string root, string ftpEncryption) | |
Constructs a new instance of FtpStorage. More... | |
FtpStorage (string host, string port, string userName, string password, string root) | |
Constructs a new instance of FtpStorage. 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... | |
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... | |
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... | |
Properties | |
Action< FtpClient > | OnConnect [get, set] |
Gets or sets the action executed when a connection to the FTP server is about to happen. More... | |
A FTP file system.
|
inline |
Constructs a new instance of FtpStorage.
host | A host to connect to. |
port | A port number to connect to. |
userName | A user name. |
password | An account password. |
root | A root folder on the FTP server. |
ftpEncryption | An encryption mode to use. Valid values are: none, ssl, tls. |
|
inline |
Constructs a new instance of FtpStorage.
host | A host to connect to. |
port | A port number to connect to. |
userName | A user name. |
password | An account password. |
root | A root folder on the FTP server. |
|
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.
|
getset |
Gets or sets the action executed when a connection to the FTP server is about to happen.