assistant: Fix OSX-specific bug that caused the startup scan to try to follow symlinks to other directories, and add their contents to the annex.
This commit is contained in:
parent
fcf6384389
commit
c99d6a8151
7 changed files with 23 additions and 13 deletions
|
@ -67,7 +67,9 @@ watchDir dir ignored hooks = do
|
|||
| otherwise = noop
|
||||
|
||||
scan d = unless (ignoredPath ignored d) $
|
||||
mapM_ go =<< dirContentsRecursive d
|
||||
-- Do not follow symlinks when scanning.
|
||||
-- This mirrors the inotify startup scan behavior.
|
||||
mapM_ go =<< dirContentsRecursiveSkipping (const False) False d
|
||||
where
|
||||
go f
|
||||
| ignoredPath ignored f = noop
|
||||
|
|
|
@ -42,7 +42,7 @@ watchDir dir ignored hooks = do
|
|||
runhook h s = maybe noop (\a -> a (filePath evt) s) (h hooks)
|
||||
|
||||
scan d = unless (ignoredPath ignored d) $
|
||||
mapM_ go =<< dirContentsRecursive d
|
||||
mapM_ go =<< dirContentsRecursiveSkipping (const False) False d
|
||||
where
|
||||
go f
|
||||
| ignoredPath ignored f = noop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue