on second thought, InodeCache should use getFileSize
This is necessary for interop between inode caches created on unix and windows. Which is more important than supporting inodecaches for large keys with the wrong size, which are broken anyway. There should be no slowdown from this change, except on Windows.
This commit is contained in:
parent
467b77fd3b
commit
068aaf943b
6 changed files with 15 additions and 16 deletions
|
@ -70,7 +70,7 @@ statusDirect f = checkstatus =<< liftIO (catchMaybeIO $ getFileStatus f)
|
|||
| not (isSymbolicLink s) = checkkey s =<< catKeyFile f
|
||||
| otherwise = Just <$> checkNew f
|
||||
|
||||
checkkey s (Just k) = ifM (sameFileStatus k s)
|
||||
checkkey s (Just k) = ifM (sameFileStatus k f s)
|
||||
( return Nothing
|
||||
, return $ Just ModifiedFile
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue