Skip to content

Commit

Permalink
fsevent: use RenameMode::Any
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf authored and 0xpr03 committed Jan 9, 2022
1 parent 0697fae commit 8948dd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fsevent.rs
Expand Up @@ -172,9 +172,11 @@ fn translate_flags(flags: StreamFlags, precise: bool) -> Vec<Event> {
});
}

// FSEvents provides no mechanism to associate the old and new sides of a
// rename event.
if flags.contains(StreamFlags::ITEM_RENAMED) {
evs.push(Event::new(EventKind::Modify(ModifyKind::Name(
RenameMode::From,
RenameMode::Any,
))));
}

Expand Down

0 comments on commit 8948dd1

Please sign in to comment.