Skip to content

Commit

Permalink
Path watcher event delegate now checks for "item created" flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Ferguson committed Jul 11, 2012
1 parent c22120d commit f676cda
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/DPAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,11 @@ - (IBAction)orderFrontSettingsWindow:(id)sender {
}

- (void)pathWatcher:(SCEvents *)pathWatcher eventOccurred:(SCEvent *)event {
// check flags for kFSEventStreamEventFlagItemCreated (0x100)
int flags = [event eventFlags];
if (!(flags & 0x100))
return;

#if DEBUG
[log debug:@"Received SCEvents directory notification"];
#endif
Expand Down

0 comments on commit f676cda

Please sign in to comment.