file.filesOnVolume
| Syntax |
file.filesOnVolume (path)
|
| Params |
path is the name of the volume on which you wish to determine the number of files and folders.
|
| Action |
Shows the total number of files on the volume indicated by path.
|
| Returns |
Returns the number of files on the indicated volume.
|
| Examples |
file.filesOnVolume ("C:") » 0
file.filesOnVolume ("System:")
file.filesOnVolume ("Untitled:")
file.filesOnVolume ("No such volume:")
|
| Errors |
Attempting to find out how many files exist on a non-existent volume results in an error message.
|
| Notes |
The File system maintains this number, so this verb is fast because no traversal is necessary. The count includes all folders. If you have a volume with three folders containing, respectively, 10, 15, and 20 files, this verb will return 48. The count includes invisible files. If path is an AppleShare volume, this verb returns 0.
|
| See Also |
file.foldersOnVolume
|