Commit 1834dc1 1 parent fa44229 commit 1834dc1 Copy full SHA for 1834dc1
File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ fn get_relevant_event_kind(event_kind: &EventKind) -> Option<SimpleFileSystemEve
39
39
Some ( SimpleFileSystemEventKind :: Create )
40
40
}
41
41
EventKind :: Modify ( ModifyKind :: Data ( _) )
42
+ // Windows 10 only reports modify events at the `Any` granularity.
43
+ | EventKind :: Modify ( ModifyKind :: Any )
42
44
// Intellij modifies file metadata on edit.
43
45
// https://github.com/passcod/notify/issues/150#issuecomment-494912080
44
46
| EventKind :: Modify ( ModifyKind :: Metadata ( MetadataKind :: WriteTime ) )
@@ -178,6 +180,7 @@ mod tests {
178
180
let cases = vec ! [
179
181
( EventKind :: Create ( CreateKind :: File ) , Some ( SimpleFileSystemEventKind :: Create ) ) ,
180
182
( EventKind :: Create ( CreateKind :: Folder ) , Some ( SimpleFileSystemEventKind :: Create ) ) ,
183
+ ( EventKind :: Modify ( ModifyKind :: Any ) , Some ( SimpleFileSystemEventKind :: Modify ) ) ,
181
184
(
182
185
EventKind :: Modify ( ModifyKind :: Data ( DataChange :: Size ) ) ,
183
186
Some ( SimpleFileSystemEventKind :: Modify ) ,
You can’t perform that action at this time.
0 commit comments