Skip to content

Class FtpClient DeleteDirectory

FanDjango edited this page Sep 23, 2022 · 4 revisions
Clone this wiki locally

FtpClient.DeleteDirectory()

BeginDeleteDirectory(path,callback,state)

Begins an asynchronous operation to delete the specified directory and all its contents.

Returns

IAsyncResult

Parameters
Name Type Description
path String The full or relative path of the directory to delete
callback AsyncCallback Async callback
state Object State object

BeginDeleteDirectory(path,options,callback,state)

Begins an asynchronous operation to delete the specified directory and all its contents.

Returns

IAsyncResult

Parameters
Name Type Description
path String The full or relative path of the directory to delete
options FtpListOption Useful to delete hidden files or dot-files.
callback AsyncCallback Async callback
state Object State object

EndDeleteDirectory(ar)

Ends a call to

Parameters
Name Type Description
ar IAsyncResult IAsyncResult returned from BeginDeleteDirectory

DeleteDirectory(path)

Deletes the specified directory and all its contents.

Parameters
Name Type Description
path String The full or relative path of the directory to delete

DeleteDirectory(path,options)

Deletes the specified directory and all its contents.

Parameters
Name Type Description
path String The full or relative path of the directory to delete
options FtpListOption Useful to delete hidden files or dot-files.

DeleteDirectoryAsync(path,token)

Asynchronously removes a directory and all its contents.

Parameters
Name Type Description
path String The full or relative path of the directory to delete
token CancellationToken Cancellation Token

DeleteDirectoryAsync(path,options,token)

Asynchronously removes a directory and all its contents.

Parameters
Name Type Description
path String The full or relative path of the directory to delete
options FtpListOption Useful to delete hidden files or dot-files.
token CancellationToken Cancellation Token