FtpCleanRemoteDirectory — Clean remote directory of contents, but leave directory.
None.
FtpHandle | Handle for FTP connection. |
RemoteDirectory | Remote directory to clean. |
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.
% set FtpHandle [ftp::Open $GenNS::Ftp::Server $GenNS::Ftp::Username $GenNS::Ftp::Password {*}$GenNS::Ftp::OptionsList]
1
% FtpCleanRemoteDirectory $FtpHandle NameOfDirectoryToClean