Lists the names of all currently available disks.
TrFile_ListDisks ( switches )
|switches||(optional) determine way the result is returned|
Switches can be empty or:
|-ReturnAtEnd||add an extra return character after the last found item in the list|
Data type returned
A list of names of all the disks that are currently mounted (available).
Troi File Plug-in 2.0
FileMaker Pro 16 to 19
On macOS it is possible to have multiple disks with the same name. In this case you will see the same disk name multiple times in the list.
NOTE To find the startup disk you can use the TrFile_FindFolder function.
Set Field [ result ; TrFile_ListDisks ( "" ) ]
On macOS this will return a list of names of all the disks that are currently mounted, for example:
Photos till 2020¶
Music Archive Disk 5
On Windows the drive letters of the available disks are returned, for example:
Used in example file