CFURLCreateWithFileSystemPathRelativeToBase(_:_:_:_:_:)
Creates a CFURL object using a local file system path string relative to a base URL.
Declaration
func CFURLCreateWithFileSystemPathRelativeToBase(_ allocator: CFAllocator!, _ filePath: CFString!, _ pathStyle: CFURLPathStyle, _ isDirectory: Bool, _ baseURL: CFURL!) -> CFURL!Parameters
- allocator:
The allocator to use to allocate memory for the new
CFURLobject. PassNULLor Kcfallocatordefault to use the current default allocator. - filePath:
The path string to convert to a
CFURLobject. - pathStyle:
The operating system path style used in the
filePathstring. See Cfurlpathstyle for a list of possible values. - isDirectory:
A Boolean value that specifies whether
filePathis treated as a directory path when resolving against relative path components. Passtrueif the pathname indicates a directory,falseotherwise. - baseURL:
The base URL against which to resolve the
filePath.
Return Value
A new CFURL object. Ownership follows the create rule. See The Create Rule.
Discussion
This function takes a path name in the form of a CFString object, resolves it against a base URL, and returns a new CFURL object containing the result.
See Also
Creating a CFURL
CFURLCopyAbsoluteURL(_:)CFURLCreateAbsoluteURLWithBytes(_:_:_:_:_:_:)CFURLCreateByResolvingBookmarkData(_:_:_:_:_:_:_:)CFURLCreateCopyAppendingPathComponent(_:_:_:_:)CFURLCreateCopyAppendingPathExtension(_:_:_:)CFURLCreateCopyDeletingLastPathComponent(_:_:)CFURLCreateCopyDeletingPathExtension(_:_:)CFURLCreateFilePathURL(_:_:_:)CFURLCreateFileReferenceURL(_:_:_:)CFURLCreateFromFileSystemRepresentation(_:_:_:_:)CFURLCreateFromFileSystemRepresentationRelativeToBase(_:_:_:_:_:)CFURLCreateFromFSRef(_:_:)CFURLCreateWithBytes(_:_:_:_:_:)CFURLCreateWithFileSystemPath(_:_:_:_:)CFURLCreateWithString(_:_:_:)