Deletes a remote directory and its contents.
gd_rmuniquedir(host,remotedir)
This function deletes a remote directory and the files that it contains using GridFTP. The function will not delete the remote directory specified (or any of its contents) if the remote directory contains any sub-directories. This is a safety feature which is intended to mitigate the risks of wildcard deletions on a remote machine.
If the specified directory contains sub-directories an error will be thrown. Errors will also be thrown if the directory does not exist or if permission is denied to delete the directory or its contents.
gd_rmuniquedir(host,remotedir) where host is the name of the GridFTP server and remotedir is the name of the directory to be deleted.
A valid proxy certificate is required to use GridFTP. Suitable credentials may be required to delete files on remote servers.
gd_rmdir, gd_rmfile, gd_submitunique
Copyright © 2005, The Geodise Project, University of Southampton