Skip to content

Commit e214a53

Browse files
committed
⚡️Improve DirectoryMonitor
make it react to first file change
1 parent dc2a1af commit e214a53

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Sources/WebberTools/DirectoryMonitor.swift

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,6 @@ public class DirectoryMonitor {
9797
}
9898
}
9999
case .dir:
100-
guard !self.childChanged else {
101-
self.childChanged = false
102-
return
103-
}
104-
// switch data {
105-
// case .all: print("all")
106-
// case .attrib: print("attrib")
107-
// case .delete: print("delete")
108-
// case .extend: print("extend")
109-
// case .funlock: print("unlock:")
110-
// case .link: print("ink:")
111-
// case .rename: print("ename:")
112-
// case .revoke: print("revoke")
113-
// case .write: print("write")
114-
// default:
115-
// print("unknown")
116-
// }
117100
self.parent?.childChanged = true
118101
self.lastChangedDate = Date()
119102
if let urls = try? FileManager.default.contentsOfDirectory(atPath: self.url.path).map({ self.url.appendingPathComponent($0) }) {

0 commit comments

Comments
 (0)