Skip to content

Commit f9ab5c8

Browse files
authored
Merge pull request #17613 from lutherjm/pr/41378853
URL is missing several URLResourceValues
2 parents a4e9109 + 4f0d568 commit f9ab5c8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

stdlib/public/SDK/Foundation/URL.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,26 @@ public struct URLResourceValues {
412412
@available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *)
413413
public var volumeSupportsCompression : Bool? { return _get(.volumeSupportsCompressionKey) }
414414

415+
/// true if the volume supports clonefile(2).
416+
@available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *)
417+
public var volumeSupportsFileCloning : Bool? { return _get(.volumeSupportsFileCloningKey) }
418+
419+
/// true if the volume supports renamex_np(2)'s RENAME_SWAP option.
420+
@available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *)
421+
public var volumeSupportsSwapRenaming : Bool? { return _get(.volumeSupportsSwapRenamingKey) }
422+
423+
/// true if the volume supports renamex_np(2)'s RENAME_EXCL option.
424+
@available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *)
425+
public var volumeSupportsExclusiveRenaming : Bool? { return _get(.volumeSupportsExclusiveRenamingKey) }
426+
427+
/// true if the volume supports making files immutable with isUserImmutable or isSystemImmutable.
428+
@available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
429+
public var volumeSupportsImmutableFiles : Bool? { return _get(.volumeSupportsImmutableFilesKey) }
430+
431+
/// true if the volume supports setting POSIX access permissions with fileSecurity.
432+
@available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
433+
public var volumeSupportsAccessPermissions : Bool? { return _get(.volumeSupportsAccessPermissionsKey) }
434+
415435
/// true if this item is synced to the cloud, false if it is only a local file.
416436
public var isUbiquitousItem : Bool? { return _get(.isUbiquitousItemKey) }
417437

0 commit comments

Comments
 (0)