mirror of
https://github.com/haiwen/seafile.git
synced 2025-01-09 04:17:30 +08:00
Remove flag kFSEventStreamCreateFlagFileEvents
This commit is contained in:
parent
3d054dc1ca
commit
13beb59f0c
@ -209,7 +209,9 @@ add_watch (SeafWTMonitor *monitor, const char* repo_id, const char* worktree)
|
||||
FSEventStreamRef stream;
|
||||
|
||||
/* Create the stream, passing in a callback */
|
||||
seaf_debug("Use kFSEventStreamCreateFlagFileEvents | kFSEventStreamCreateFlagWatchRoot\n");
|
||||
seaf_debug("Use kFSEventStreamCreateFlagWatchRoot\n");
|
||||
// kFSEventStreamCreateFlagFileEvents does not work for libraries with name
|
||||
// containing accent characters.
|
||||
struct FSEventStreamContext ctx = {0, monitor, NULL, NULL, NULL};
|
||||
stream = FSEventStreamCreate(kCFAllocatorDefault,
|
||||
stream_callback,
|
||||
@ -217,7 +219,7 @@ add_watch (SeafWTMonitor *monitor, const char* repo_id, const char* worktree)
|
||||
pathsToWatch,
|
||||
kFSEventStreamEventIdSinceNow,
|
||||
latency,
|
||||
kFSEventStreamCreateFlagFileEvents | kFSEventStreamCreateFlagWatchRoot
|
||||
kFSEventStreamCreateFlagWatchRoot
|
||||
);
|
||||
|
||||
CFRelease (mypaths[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user