mountedVolumeURLs(includingResourceValuesForKeys:options:)
Returns an array of URLs that identify the mounted volumes available on the device.
Declaration
func mountedVolumeURLs(includingResourceValuesForKeys propertyKeys: [URLResourceKey]?, options: FileManager.VolumeEnumerationOptions = []) -> [URL]?Parameters
- propertyKeys:
An array of keys that identify the file properties that you want pre-fetched for each volume. For each returned URL, the values for these keys are cached in the corresponding Nsurl objects. You may specify
nilfor this parameter. For a list of keys you can specify, see Common File System Resource Keys. - options:
Option flags for the enumeration. For a list of possible values, see Volumeenumerationoptions.
Return Value
An array of NSURL objects identifying the mounted volumes.
Discussion
This call may block if I/O is required to determine values for the requested propertyKeys.