Skip to content

Class FtpClient EmptyDirectory

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

FtpClient.EmptyDirectory()

BeginEmptyDirectory(path,callback,state)

Begins an asynchronous operation to delete the contents of the specified directory.

Returns

IAsyncResult

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

BeginEmptyDirectory(path,options,callback,state)

Begins an asynchronous operation to delete the contents of the specified directory.

Returns

IAsyncResult

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

EndEmptyDirectory(ar)

Ends a call to

Parameters
Name Type Description
ar IAsyncResult IAsyncResult returned from BeginEmptyDirectory

EmptyDirectory(path)

Deletes the contents of the specified directory.

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

EmptyDirectory(path,options)

Deletes the contents of the specified directory.

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

EmptyDirectoryAsync(path,token)

Asynchronously removes the contents of a directory.

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

EmptyDirectoryAsync(path,options,token)

Asynchronously removes the contents of a directory.

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