Contents

CFURLCopyFileSystemPath(_:_:)

Returns the path portion of a given URL.

Declaration

func CFURLCopyFileSystemPath(_ anURL: CFURL!, _ pathStyle: CFURLPathStyle) -> CFString!

Parameters

  • anURL:

    The CFURL object 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