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) co' <- (try @_ @IOError $ listDirectory f)
<&> fromRight mempty <&> fromRight mempty
let co = [ normalise (f </> x) | x <- co' ] forConcurrently_ co' $ \x -> do
& filter (not . skip) let p = normalise (f </> x)
unless (skip p) (go q p)
forConcurrently_ co (go q)
entries :: forall c m . ( IsContext c entries :: forall c m . ( IsContext c
, Exception (BadFormException c) , Exception (BadFormException c)