diff --git a/platform.d b/platform.d index 56bb095..528fcc5 100644 --- a/platform.d +++ b/platform.d @@ -668,7 +668,7 @@ WatchDirectory(string dir, WatchType type, bool blocking = false) fcntl(watcher.handle, F_SETFL, fcntl(watcher.handle, F_GETFL) | O_NONBLOCK); } - watcher.dir_handle = inotify_add_watch(watcher.handle, dir.ptr, IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MODIFY|IN_MOVE_SELF|IN_MOVED_FROM|IN_MOVED_TO|IN_ATTRIB|IN_EXCL_UNLINK); + watcher.dir_handle = inotify_add_watch(watcher.handle, dir.ptr, type); return watcher; }