Instance Method
appendingPathComponent(_:isDirectory:)
iOS 8.0+Deprecated
iPadOS 8.0+Deprecated
Mac Catalyst 8.0+Deprecated
macOS 10.10+Deprecated
tvOS 9.0+Deprecated
visionOS 1.0+Deprecated
watchOS 2.0+Deprecated
Deprecated
Use appending(path:directoryHint:) instead
Returns a URL constructed by appending the given path component to self.
func appendingPathComponent(_ pathComponent: String, isDirectory: Bool) -> URL
Parameters
pathComponentThe path component to add.
isDirectoryIf
true, then a trailing/is added to the resulting path.