Contents

CFURLCreateCopyDeletingPathExtension(_:_:)

Creates a copy of a given URL with its last path extension removed.

Declaration

func CFURLCreateCopyDeletingPathExtension(_ allocator: CFAllocator!, _ url: CFURL!) -> CFURL!

Parameters

  • allocator:

    The allocator to use to allocate memory for the new CFURL object. Pass NULL or Kcfallocatordefault to use the current default allocator.

  • url:

    The CFURL object whose path extension you want to delete.

Return Value

A copy of url with its last path extension removed. Ownership follows the create rule. See The Create Rule.

See Also

Creating a CFURL