Mac OS X
Components Crossplatform Mac & Win Server Client Old Guides Examples
New in version: 7.1 7.2 7.3 7.4 7.5 8.0 8.1 8.2 8.3 8.4 Statistic
Queries information about a volume.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|Mode||What to return. Can be totalBytes or freeBytes. On Windows you can also pass DriveType for type or FreeBytesAvailable to learn available space for current user. On Mac OS X you can query also fileCount, folderCount, blockSize, totalBlocks or freeBlocks.||"freeBytes"|
|PathToVolume||The path to volume. e.g. C:\, \\MyServer\MyDisk\ or /Volumes/testDisk/ or / for root volume on OS X.||/|
Returns value or error.
DescriptionQueries information about a volume.
Please pass native path to volume.
For Windows network volumes with \\ syntax, please include trailing backslash.
|Unknown||The drive type cannot be determined.|
|Removable||The drive has removable media; for example, a floppy drive, thumb drive, or flash card reader.|
|Fixed||The drive has fixed media; for example, a hard disk drive or flash drive.|
|Remote||The drive is a remote (network) drive.|
|CDROM||The drive is a CD-ROM drive.|
|RAMDisk||The drive is a RAM disk.|
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
Query free bytes on Mac OS X root volume:
Query total size of a mounted volume on Mac:
Query number of files and folders on Mac:
Query available free bytes on C: for Windows:
Queries size of shared folder in VMWare on Windows:
Check drive type on Windows:
Created 3th February 2015, last changed 27th June 2017
Feedback: Report problem or ask question.
MBS Xojo PDF Plugins