Walk a directory/Recursively: Difference between revisions
m
→{{header|Haskell}}: Minor tidying, applied hlint, hindent.
(→{{header|Python}}: Add Python 3 method via pathlib.Path.rglob()) |
m (→{{header|Haskell}}: Minor tidying, applied hlint, hindent.) |
||
Line 1,017:
import System.IO
isDirectory <- doesDirectoryExist top
if isDirectory
then do
files <- listDirectory top
mapM_ (dirWalk
▲ filefunc top
main :: IO ()
main = do
|
| otherwise = return
dirWalk worker "."</lang>
== Icon and Unicon ==
|