file.freeSpaceOnVolumeDouble

Syntax file.freeSpaceOnVolumeDouble (path)

Params path is the name of the volume on which you wish to determine the free space.

Action Determines the space remaining on the designated volume.

Returns The number of bytes free on the indicated volume as a double floating-point value.

Examples file.freeSpaceOnVolumeDouble ("d:\\")

   » 4761784320.0

file.freeSpaceOnVolumeDouble ("Macintosh HD:")

   » 2367918080.0

Errors Attempting to find out how many bytes are available on a non-existent volume results in an error message indicating Frontier "Couldn't find the disk volume."

Notes This verb should work with volumes up to 4 Terabytes large, sepcifically it returns the correct result for volumes larger than 2 Gigabyte where file.freeSpaceOnVolume doesn't.

The file system maintains this number, so this verb requires no traversal of the directory. It is therefore fast.

This verb is new in Frontier 6.1.

See Also file.freeSpaceOnVolume

file.bytesOnVolumeDouble

file.volumeSizeDouble

Discuss