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


next up previous contents index
Next: os.filetime - Function Up: os - Tool Previous: os.basename - Function


os.filetype - Function



Package utility
Module misc
Tool os


determine file type


Synopsis
filetype(filename, follow)


Description
Determine the file type of each file. It also recognizes tables.
By default it follows a symbolic link.
The string returned can have the following values:
Table
Directory
Regular File
SymLink
Invalid (meaning that the file does not exist)
Unknown
Note that in principle the type 'SymLink' can only be returned when follow=F.



Example
  dos.filetype ('~/aips++/test/hol.ms')
Table



Arguments

filename in file name
    Allowed: vector of strings
follow in follow symlink?
    Allowed: bool
    Default: T


Returns
vector of strings




next up previous contents index
Next: os.filetime - Function Up: os - Tool Previous: os.basename - 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