gd_listdir

Lists the contents of a directory on a GridFTP server.

 

Syntax

(files,details) = gd_listdir(host,remotedir=None,

  listhidden=0)

 

Description

(files,details) = gd_listdir(host) returns a tuple containing files, a list of the names of files in remotedir, and details, a list containing dictionaries describing the details of these files in the user's home directory on the GridFTP server host.

 

(files,details) = gd_listdir(host,remotedir) where files is a list 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,details) = 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).

 

Notes

A valid proxy certificate is required to use GridFTP.  

 

See also

gd_putfile, gd_getfile, gd_createproxy



gd_jobsubmit

contents

gd_makedir

Copyright © 2005, The Geodise Project, University of Southampton