CFURLGetFSRef(_:_:)
Converts a given URL to a file or directory object.
Declaration
func CFURLGetFSRef(_ url: CFURL!, _ fsRef: OpaquePointer!) -> BoolParameters
- url:
The
CFURLobject to convert to a file or directory object. - fsRef:
Upon return, contains the file or directory object representing
url.
Return Value
true if the conversion was successful, otherwise false.
Discussion
The function cannot create an FSRef object if any of the leading path parts specified by url is an alias. The function can, however, traverse symbolic links.