Implement recursive watching of a directory
This commit is contained in:
16
Sources/Inotify/DirectoryResolverErrror.swift
Normal file
16
Sources/Inotify/DirectoryResolverErrror.swift
Normal 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)"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user