Skip to content

Commit 036def4

Browse files
committed
Improve justification in this comment
1 parent 299c3fc commit 036def4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/Utility/misc.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public func rmtree(_ components: String...) throws {
3232
do {
3333
try POSIX.rmdir(dir)
3434
} catch .rmdir(let errno, _) as SystemError where errno == ENOENT {
35-
// Ignore ENOENT.
35+
// if the directory is not there then proceed
36+
// this could happen if it was in fact symlinked
37+
// from another part of the tree etc.
3638
}
3739
}
3840
try POSIX.rmdir(path)

0 commit comments

Comments
 (0)