CFURLCopyFileSystemPath(_:_:)
Returns the path portion of a given URL.
Declaration
func CFURLCopyFileSystemPath(_ anURL: CFURL!, _ pathStyle: CFURLPathStyle) -> CFString!Parameters
- anURL:
The
CFURLobject whose path you want to obtain. - pathStyle:
The operating system path style to be used to create the path. See Cfurlpathstyle for a list of possible values.
Return Value
The URL’s path in the format specified by pathStyle. Ownership follows the create rule. See The Create Rule.
Discussion
This function returns the URL’s path as a file system path for a given path style.
See Also
Accessing the Parts of a URL
CFURLCanBeDecomposed(_:)CFURLCopyFragment(_:_:)CFURLCopyHostName(_:)CFURLCopyLastPathComponent(_:)CFURLCopyNetLocation(_:)CFURLCopyParameterString(_:_:)CFURLCopyPassword(_:)CFURLCopyPath(_:)CFURLCopyPathExtension(_:)CFURLCopyQueryString(_:_:)CFURLCopyResourceSpecifier(_:)CFURLCopyScheme(_:)CFURLCopyStrictPath(_:_:)CFURLCopyUserName(_:)CFURLGetPortNumber(_:)