Creates a copy of a given URL with its last path extension removed.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The allocator to use to allocate memory for the new
kto use the current default allocator.
CFURLobject whose path extension you want to delete.
A copy of
url with its last path extension removed. Ownership follows the create rule. See The Create Rule.