Skip to content
/ pathwalk Public
forked from Xe/pathwalk

Some really simple path walking tools and utilities for Haskell.

License

Notifications You must be signed in to change notification settings

rubik/pathwalk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pathwalk

Some really simple path walking tools and utilities for Haskell.

module Main (main) where

import Control.Monad (forM_)
import System.Directory.PathWalk (pathWalk)
import System.Environment (getArgs)

main :: IO ()
main = do
  rawArgs <- getArgs
  let args = if rawArgs == [] then ["."] else rawArgs
  forM_ args $ \arg -> do
    pathWalk arg $ \root dirs files -> do
      putStrLn root
      putStrLn $ "  dirs: " ++ show dirs
      putStrLn $ "  files: " ++ show files

About

Some really simple path walking tools and utilities for Haskell.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 100.0%