DzFileInfo Class Reference
[File Input and Output Objects]

DAZ Script file information class. More...

Inheritance diagram for DzFileInfo:

DzFile DzGZFile DzZipFile List of all members.

Methods

String absFileName ()
String baseName ()
Date created ()
Boolean exists ()
String extension ()
String fileName ()
Boolean isHidden ()
Boolean isReadable ()
Boolean isWritable ()
Date lastModified ()
Date lastRead ()
String path ()
Boolean remove ()
Number size ()
String sizeStr ()

Constructors

 DzFileInfo (String file)

Detailed Description

DAZ Script file information class.

This class provides DAZ Script functionality for getting information about files. It also serves as the base class for the other DAZ Script File I/O types.


Constructor & Destructor Documentation

DzFileInfo::DzFileInfo ( String  file  ) 

Create a file with the given file name


Member Function Documentation

String DzFileInfo::absFileName (  ) 

Returns:
The absolute path of the file including the file name.

String DzFileInfo::baseName (  ) 

Returns:
The file name excluding the last '.' and extension.

Date DzFileInfo::created (  ) 

Returns:
The date and time the file was created.

Boolean DzFileInfo::exists (  ) 

Returns:
true if the file exists on the disk.

String DzFileInfo::extension (  ) 

Returns:
The file extension after, but not including, the last '.'.

String DzFileInfo::fileName (  ) 

Returns:
The current name of the file as it was specified.

Boolean DzFileInfo::isHidden (  ) 

Returns:
true if the file is hidden.

Boolean DzFileInfo::isReadable (  ) 

Returns:
true if the file is readable.

Boolean DzFileInfo::isWritable (  ) 

Returns:
true if the file is writable.

Date DzFileInfo::lastModified (  ) 

Returns:
The date and time the file was last modified.

Date DzFileInfo::lastRead (  ) 

Returns:
The date and time the file was last accessed.

String DzFileInfo::path (  ) 

Returns:
The absolute path of the file.

bool DzFileInfo::remove (  ) 

Delete the file from the disk

Number DzFileInfo::size (  ) 

Returns:
The file size in bytes.

String DzFileInfo::sizeStr (  ) 

Returns:
The file size in bytes, formatted in an easy-to-read manner.


Generated on Thu Sep 24 12:21:12 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.