Standardizes the path of a file URL.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.0+
Framework
- Foundation
Declaration
mutating func standardize()
Discussion
If the is
is false, this method does nothing.
Standardizes the path of a file URL.
SDKs
Framework
mutating func standardize()
If the is
is false, this method does nothing.
var is File URL: Bool
A Boolean that is true if the scheme is file:
.
var has Directory Path: Bool
A Boolean that is true if the URL path represents a directory.
func with Unsafe File System Representation<Result Type>((Unsafe Pointer<Int8>?) -> Result Type) -> Result Type
Passes the URL’s path in the file system representation to a closure.
func resolve Symlinks In Path()
Resolves any symlinks in the path of a file URL.
func resolving Symlinks In Path() -> URL
Resolves any symlinks in the path of a file URL.