Lists the contents of a directory on a GridFTP server.
files = gd_listdir(host)
files = gd_listdir(host,remotedir)
files = gd_listdir(host,remotedir,listhidden)
[files,details] = gd_listdir(...)
files = gd_listdir(host) where files is a cell array containing the filenames of files in the user's home directory on the GridFTP server host.
files = gd_listdir(host,remotedir) where files is a cell array containing the filenames of files in the directory remotedir on the GridFTP server host (if remotedir is empty the contents of the user's home directory will be listed).
files = gd_listdir(host,remotedir,listhidden) the list of filenames will include hidden files if the argument listhidden is true (equal to 1). Otherwise the names of hidden files will not be returned (default behaviour).
[files,details] = gd_listdir(host) as above where details is a cell array containing structures that describe the details of the files and directories contained in the remote directory.
A valid proxy certificate is required to use GridFTP.
gd_putfile, gd_getfile, gd_createproxy
Copyright © 2005, The Geodise Project, University of Southampton