diff --git a/pkg/storage/fs/posix/tree/inotifywatcher.go b/pkg/storage/fs/posix/tree/inotifywatcher.go index 749c4cd489..54b7157e0f 100644 --- a/pkg/storage/fs/posix/tree/inotifywatcher.go +++ b/pkg/storage/fs/posix/tree/inotifywatcher.go @@ -70,8 +70,7 @@ func (iw *InotifyWatcher) Watch(path string) { _ = iw.tree.Scan(event.Filename, ActionDelete, event.IsDir) case inotifywaitgo.MOVED_FROM: _ = iw.tree.Scan(event.Filename, ActionMoveFrom, event.IsDir) - case inotifywaitgo.CREATE: - case inotifywaitgo.MOVED_TO: + case inotifywaitgo.CREATE, inotifywaitgo.MOVED_TO: _ = iw.tree.Scan(event.Filename, ActionCreate, event.IsDir) case inotifywaitgo.CLOSE_WRITE: _ = iw.tree.Scan(event.Filename, ActionUpdate, event.IsDir)