Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: misc.dir - Function Up: misc - Tool Previous: misc.fields - Function


misc.fileexists - Function



Package utility
Module misc
Tool misc


Does this file exist?


Synopsis
fileexists(file, opt)


Description
This provides a simple interface to the UNIX test command for testing for the existence of files. See the man page for test for a definition of the options that can be used to test for particular file types. The default test is to see if a file exists and has a size greater than zero.



Arguments

file   file name
    Allowed: String
opt   option for UNIX test command
    Allowed: String
    Default: -s


Example
- dms.fileexists('foo')
F 
- dms.fileexists('.')
T 
- dms.fileexists('.', '-f')
F





next up previous contents index
Next: misc.dir - Function Up: misc - Tool Previous: misc.fields - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15