DAZ Script file information class.
Inherits :
DAZ Script | |
---|---|
Permissions | { ReadOwner, WriteOwner, ExeOwner, ReadUser, WriteUser, ExeUser, ReadGroup, WriteGroup, ExeGroup, ReadOther, WriteOther, ExeOther } |
DAZ Script |
---|
DzFileInfo ( String file ) |
DAZ Script | |
---|---|
DzDir | absoluteDir () |
String | absoluteFilePath () |
String | absolutePath () |
String | bundleName () |
Boolean | caching () |
String | canonicalFilePath () |
String | canonicalPath () |
String | completeBaseName () |
String | completeSuffix () |
Date | created () |
DzDir | dir () |
Boolean | exists () |
String | fileName () |
String | filePath () |
Boolean | isAbsolute () |
Boolean | isBundle () |
Boolean | isDir () |
Boolean | isExecutable () |
Boolean | isFile () |
Boolean | isHidden () |
Boolean | isReadable () |
Boolean | isRelative () |
Boolean | isRoot () |
Boolean | isSymLink () |
Boolean | isWritable () |
Date | lastModified () |
Date | lastRead () |
Boolean | makeAbsolute () |
String | path () |
Boolean | permission ( Permissions permissions ) |
Permissions | permissions () |
void | refresh () |
Boolean | remove () |
void | setCaching ( Boolean enable ) |
void | setFile ( String file ) |
void | setFile ( DzDir dir, String file ) |
void | setFile ( DzFile file ) |
Number | size () |
String | sizeStr () |
String | suffix () |
String | symLinkTarget () |
Deprecated | |
String | absFileName () |
String | extension () |
String | baseName () |
Provides access to getting information about files. It also serves as the base class for the other DAZ Script File I/O types.
Enumerated values used by permission() and permissions() to set/report the permissions and/or ownership of a file. The values may be OR-ed together to set/test multiple permissions and ownership values.
DzFileInfo( String file )
Creates a file info object to retrieve information about the given file.
Parameter(s):
DzDir : absoluteDir()
Return Value:
Since:
Return Value:
Since:
String : absolutePath()
Return Value:
Since:
String : bundleName()
Return Value:
Since:
Return Value:
true
if caching is enabled, otherwise false
.Since:
Return Value:
Since:
String : canonicalPath()
Return Value:
Since:
Return Value:
Since:
String : completeSuffix()
Return Value:
Since:
Return Value:
Return Value:
Since:
Return Value:
true
if the file exists on the disk.Return Value:
Return Value:
Since:
Boolean : isAbsolute()
Return Value:
true
if the file path is absolute, otherwise false
.Since:
Return Value:
true
if this object points to a bundle or to a symbolic link to a bundle on Mac OS X, otherwise false
.Since:
Return Value:
true
if this object points to a directory or to a symbolic link to a directory, otherwise false
.Since:
Boolean : isExecutable()
Return Value:
true
if this object points to file that is executable, otherwise false
.Since:
Return Value:
true
if this object points to a file or to a symbolic link to a file, otherwise false
(e.g., a directory).Since:
Return Value:
true
if the file is 'hidden', otherwise false
.Boolean : isReadable()
Return Value:
true
if the file is readable by the user, otherwise false
.Boolean : isRelative()
Return Value:
true
if the file path is relative, otherwise false
.Since:
Return Value:
true
if the object points to a directory or to a symbolic link to a directory, and that directory is the root directory, otherwise false
.Since:
Return Value:
true
if this object points to a symbolic link (shortcut on Windows), otherwise false
.Since:
Boolean : isWritable()
Return Value:
true
if the file is writable by the user, otherwise false
.Date : lastModified()
Return Value:
Return Value:
Boolean : makeAbsolute()
Converts the file's path to an absolute path if it is not already in that form.
Return Value:
true
if the path was converted, otherwise false
.Since:
Return Value:
See Also:
Boolean : permission( Permissions permissions )
Tests for file permissions. The permissions
argument can be several Permissions OR-ed together to check for permission combinations.
Return Value:
true
if the file has the permissions
specified, otherwise false
.Since:
Return Value:
Since:
void : refresh()
Refreshes information about the file, i.e. reads in information from the file system the next time a cached property is fetched.
Since:
Delete the file from the disk.
Return Value:
true
if successful, otherwise false
.void : setCaching( Boolean enable )
Sets whether or not caching of file information caching is enabled. When caching is enabled, file information is read from the file system the first time it's needed, but generally not later.
Since:
Sets the file to provide information about to file
.
Since:
void : setFile( DzDir dir, String file )
Sets the file to provide information about to file
in dir
.
Since:
Sets the file to provide information about to file
.
Since:
Return Value:
Return Value:
See Also:
Return Value:
Since:
String : symLinkTarget()
Return Value:
Since:
String : absFileName()
Deprecated
Exists only to keep old code working. Do not use in new code. Use absoluteFilePath() instead.
Deprecated
Exists only to keep old code working. Do not use in new code. Use suffix() instead.
Deprecated
Exists only to keep old code working. Do not use in new code. Use completeBaseName() instead.