CFURLCreateFromFSRef(_:_:)
Creates a URL from a given directory or file.
Declaration
func CFURLCreateFromFSRef(_ allocator: CFAllocator!, _ fsRef: OpaquePointer!) -> CFURL!Parameters
- allocator:
The allocator to use to allocate memory for the new
CFURLobject. PassNULLor Kcfallocatordefault to use the current default allocator. - fsRef:
The file or directory representing the URL.
Return Value
A new CFURL object. Ownership follows the create rule. See The Create Rule.
See Also
Creating a CFURL
CFURLCopyAbsoluteURL(_:)CFURLCreateAbsoluteURLWithBytes(_:_:_:_:_:_:)CFURLCreateByResolvingBookmarkData(_:_:_:_:_:_:_:)CFURLCreateCopyAppendingPathComponent(_:_:_:_:)CFURLCreateCopyAppendingPathExtension(_:_:_:)CFURLCreateCopyDeletingLastPathComponent(_:_:)CFURLCreateCopyDeletingPathExtension(_:_:)CFURLCreateFilePathURL(_:_:_:)CFURLCreateFileReferenceURL(_:_:_:)CFURLCreateFromFileSystemRepresentation(_:_:_:_:)CFURLCreateFromFileSystemRepresentationRelativeToBase(_:_:_:_:_:)CFURLCreateWithBytes(_:_:_:_:_:)CFURLCreateWithFileSystemPath(_:_:_:_:)CFURLCreateWithFileSystemPathRelativeToBase(_:_:_:_:_:)CFURLCreateWithString(_:_:_:)