Obtains the drive size for a volume
Usage:
sysDriveSize (object me, string driveChar, integer infotype)
Parameters:
driveChar ( string ) - the volume character
infotype ( integer ) - the type of drive size to retrieve. Possible values are:
- Free bytes available to the user associated with the calling thread
- Total number of bytes available to the user associated with the calling thread
- Total number of free bytes on the disk
Returns:
(string) - the bytes requested.
Example:
xtRose = xtra("Rosetta").new( )
strSize = xtRose.sysDriveSize( "c", 1 )
Notes:
If the parameter for driveChar is more than 1 character, only the 1st character will be read by Rosetta.
If per-user quotas are in use, the return value may be less than the total number of bytes on the disk.
This function returns a string because Director supports a max integer of 2147483647; newer hard disks can hold more data than 2147483647 bytes. Use Director's integer() function to convert the returned string back into integer, or use float( ) to perform math operations.