NAME
FtpCleanRemoteDirectory — Clean remote directory of contents, but leave directory.
SYNOPSIS
FtpCleanRemoteDirectory FtpHandle RemoteDirectory
DESCRIPTION
Return Value
None.
Arguments
FtpHandleHandle for FTP connection.
RemoteDirectoryRemote directory to clean.
More Info
See About FTP Use for additional details.

Note that this will not delete the directory itself, but rather will delete all its contents (if it can). You can then delete the directory itself by using ftp::RmDir.


For information regarding exceptions / errors, see here.
EXAMPLES
% set FtpHandle [ftp::Open $GenNS::Ftp::Server $GenNS::Ftp::Username $GenNS::Ftp::Password {*}$GenNS::Ftp::OptionsList]
1
% FtpCleanRemoteDirectory $FtpHandle NameOfDirectoryToClean
KEYWORDS
file, network