work around getDirectoryContents not streaming lazily
This commit is contained in:
parent
1c036d08eb
commit
c90e4e8778
2 changed files with 45 additions and 1 deletions
|
@ -77,7 +77,7 @@ getJournalFilesStale :: Annex [FilePath]
|
|||
getJournalFilesStale = do
|
||||
g <- gitRepo
|
||||
fs <- liftIO $ catchDefaultIO [] $
|
||||
getDirectoryContents $ gitAnnexJournalDir g
|
||||
getDirectoryContents' $ gitAnnexJournalDir g
|
||||
return $ filter (`notElem` [".", ".."]) fs
|
||||
|
||||
{- Checks if there are changes in the journal. -}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue