Skip to content

Commit ae62382

Browse files
committed
Refine URL boundary comment in directorySize.
Clarifies that the URL leak is required by the URLEnumerator API and has no FilePath equivalent (vs. the prior "is a Foundation API" wording, which underspecified the constraint).
1 parent eabc49e commit ae62382

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/Services/ContainerImagesService/Server/SnapshotStore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ extension FileManager {
220220
var size: UInt64 = 0
221221
let resourceKeys: [URLResourceKey] = [.totalFileAllocatedSizeKey]
222222

223-
// URL boundary: URLResourceKey.totalFileAllocatedSizeKey is a Foundation API
223+
// URL boundary: required by URLEnumerator API; no FilePath equivalent
224224
let dirURL = URL(fileURLWithPath: dir.string, isDirectory: true)
225225
guard
226226
let enumerator = self.enumerator(

0 commit comments

Comments
 (0)