gd_fileexists

Tests the existence of files and directories on a Globus resource.

   

Syntax

exists = gd_fileexists(host,remotefile)

 

Description

exists = gd_fileexists(host,remotefile) returns an integer exists indicating whether the file or directory specified by remotefile exists on the GridFTP server specified by the string host.

 

Example

from gdcompute import *

exists = gd_fileexists('server.domain.com','/tmp/test.dat')

 

Notes

A valid proxy certificate is required to use this function.

 

See also

gd_listdir

 



gd_destroyproxy

contents

gd_getfile

Copyright © 2005, The Geodise Project, University of Southampton