directory, webdav: Fix bug introduced in version 4.20131002 that caused the chunkcount file to not be written. Work around repositories without such a file, so files can still be retreived from them.
This commit is contained in:
parent
06ea92282f
commit
5756636486
5 changed files with 42 additions and 7 deletions
|
@ -109,9 +109,13 @@ withCheckedFiles check (Just _) d k a = go $ locations d k
|
|||
ifM (check chunkcount)
|
||||
( do
|
||||
chunks <- listChunks f <$> readFile chunkcount
|
||||
ifM (and <$> mapM check chunks)
|
||||
ifM (allM check chunks)
|
||||
( a chunks , return False )
|
||||
, go fs
|
||||
, do
|
||||
chunks <- probeChunks f check
|
||||
if null chunks
|
||||
then go fs
|
||||
else a chunks
|
||||
)
|
||||
|
||||
withStoredFiles :: ChunkSize -> FilePath -> Key -> ([FilePath] -> IO Bool) -> IO Bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue