Implement recursive watching of a directory

This commit is contained in:
T. R. Bernstein
2026-03-12 01:00:39 +01:00
parent d57f998fd4
commit b41b82bd0f
7 changed files with 122 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
import Foundation
import SystemPackage
public enum DirectoryResolverError: LocalizedError, Equatable {
case pathNotFound(FilePath)
case pathIsNoDirectory(FilePath)
var errorDescription: String {
switch self {
case .pathNotFound(let path):
return "Path not found: \(path)"
case .pathIsNoDirectory(let path):
return "Path is not a directory: \(path)"
}
}
}