This commit is contained in:
Dmitry Zuikov 2024-08-02 19:22:28 +03:00
parent efab3b7f01
commit 749d4fe04f
1 changed files with 3 additions and 4 deletions

View File

@ -54,10 +54,9 @@ glob pat ignore dir action = do
co' <- (try @_ @IOError $ listDirectory f)
<&> fromRight mempty
let co = [ normalise (f </> x) | x <- co' ]
& filter (not . skip)
forConcurrently_ co (go q)
forConcurrently_ co' $ \x -> do
let p = normalise (f </> x)
unless (skip p) (go q p)
entries :: forall c m . ( IsContext c
, Exception (BadFormException c)