AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
stat (String path) yoix.system
stat (String path, Dictionary dict)  
 
Returns a dictionary containing several pieces of information about the file or directory indicated by path. If dict is provided, it is used for storing the information, otherwise a new dictionary is created. The returned dictionary will contain entries with the following information:
exists value is 1 if path indicates an existing file or directory, value is 0 otherwise.
isdirectory value is 1 if path indicates an existing file, value is 0 otherwise.
isfile value is 1 if path. indicates an existing directory, value is 0 otherwise.
yoixpath the fully resolved Yoix representation of path.
localpath the platform-dependent representation of path.
mode the integer represented by the bitwise-ORing of READ and WRITE depending on the actual permissions associated with path.
mtime a platform-dependent representation of the modification time of path.
realpath the fully resolved representation of path with symbolic links fully followed on some platforms.
size the size of path in bytes.
 
 Return:   Dictionary
 
 See Also:   access, directoryListing, fileModified, fileSize, fopen, isDirectoryPath, isFilePath, localPath, mkdir, mkdirs, open, realPath, rename, rmdir, unlink, yoixPath

 

Yoix is a registered trademark of AT&T Inc.