file.isVolume

Syntax file.isVolume (path)

Params path is the name of an object you wish to identify as a volume or some other entity (a file or folder, for example).

Action Determines whether the item designated by path is a disk volume.

Returns True if path indicates it's a disk volume, false otherwise.

Examples file.isVolume ("C:")

   » true

file.isVolume ("C:\\")

   » true


file.isVolume ("System:")

   » true

file.isVolume ("System:System Folder:")

   » false

file.isVolume ("Untitled:") // a disk volume that isn't on-line

   » false

See Also file.isFolder

Discuss