C# Class Httpfsc.Business.Http.HttpFileSystemProxy

Proxy au système de fichiers distribués.
Inheritance: IHttpFileSystemProxy
显示文件 Open project: SGrondin/httpfs

Private Properties

Property Type Description

Public Methods

Method Description
CreateDirectory ( Url path, string>.Action errorHandler ) : System.Threading.Tasks.Task

Create a directory.

CreateEmptyFile ( Url path, string>.Action errorHandler ) : System.Threading.Tasks.Task

Create empty file.

DeleteDirectory ( Url path, string>.Action errorHandler ) : System.Threading.Tasks.Task

Delete a directory.

DeleteFile ( Url path, string>.Action errorHandler ) : System.Threading.Tasks.Task

Delete a file.

DownloadFile ( Url path, Url to, string>.Action errorHandler ) : System.Threading.Tasks.Task

Download a file.

HttpFileSystemProxy ( IHttpFileSystemProxyConfig config ) : System
ListDirectory ( Url path, string>.Action errorHandler ) : Task

Get the contents of a directory.

UploadFile ( Url to, string file, string>.Action errorHandler ) : System.Threading.Tasks.Task

Upload a file.

Method Details

CreateDirectory() public method

Create a directory.
public CreateDirectory ( Url path, string>.Action errorHandler ) : System.Threading.Tasks.Task
path Url Le chemin relatif distant du fichier à créer.
errorHandler string>.Action The error handler.
return System.Threading.Tasks.Task

CreateEmptyFile() public method

Create empty file.
public CreateEmptyFile ( Url path, string>.Action errorHandler ) : System.Threading.Tasks.Task
path Url Remote relative path to write the file.
errorHandler string>.Action The error handler.
return System.Threading.Tasks.Task

DeleteDirectory() public method

Delete a directory.
public DeleteDirectory ( Url path, string>.Action errorHandler ) : System.Threading.Tasks.Task
path Url Remote relative path of the directory to be deleted.
errorHandler string>.Action The error handler.
return System.Threading.Tasks.Task

DeleteFile() public method

Delete a file.
public DeleteFile ( Url path, string>.Action errorHandler ) : System.Threading.Tasks.Task
path Url Remote relative path of the file to be deleted.
errorHandler string>.Action The error handler.
return System.Threading.Tasks.Task

DownloadFile() public method

Download a file.
Si path indique un répertoire.
public DownloadFile ( Url path, Url to, string>.Action errorHandler ) : System.Threading.Tasks.Task
path Url Remote relative path of file to download.
to Url Local absolute path to write the file.
errorHandler string>.Action The error handler.
return System.Threading.Tasks.Task

HttpFileSystemProxy() public method

public HttpFileSystemProxy ( IHttpFileSystemProxyConfig config ) : System
config IHttpFileSystemProxyConfig
return System

ListDirectory() public method

Get the contents of a directory.
public ListDirectory ( Url path, string>.Action errorHandler ) : Task
path Url Remote relative path.
errorHandler string>.Action The error handler.
return Task

UploadFile() public method

Upload a file.
public UploadFile ( Url to, string file, string>.Action errorHandler ) : System.Threading.Tasks.Task
to Url Remote relative path to write the file.
file string Local absolute path of file to upload.
errorHandler string>.Action The error handler.
return System.Threading.Tasks.Task