Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Directory functions using find
system utility.
Synopsis
- dir_find :: FilePath -> FilePath -> IO [FilePath]
- dir_find_1 :: FilePath -> FilePath -> IO FilePath
- dir_find_ext :: String -> FilePath -> IO [FilePath]
- dir_find_ext_rel :: String -> FilePath -> IO [FilePath]
- path_scan_recursively :: [FilePath] -> FilePath -> IO (Maybe FilePath)
- path_search_recursively :: [FilePath] -> FilePath -> IO [FilePath]
Documentation
dir_find :: FilePath -> FilePath -> IO [FilePath] Source #
Find files having indicated filename. This runs the system utility find, so is Unix only.
dir_find "DX7-ROM1A.syx" "/home/rohan/sw/hsc3-data/data/yamaha/"
dir_find_1 :: FilePath -> FilePath -> IO FilePath Source #
Require that exactly one file is located, else error.
dir_find_1 "DX7-ROM1A.syx" "/home/rohan/sw/hsc3-data/data/yamaha/"
dir_find_ext :: String -> FilePath -> IO [FilePath] Source #
Recursively find files having case-insensitive filename extension. This runs the system utility find, so is Unix only.
dir_find_ext ".syx" "/home/rohan/sw/hsc3-data/data/yamaha/"
dir_find_ext_rel :: String -> FilePath -> IO [FilePath] Source #
Post-process dir_find_ext
to delete starting directory.
dir_find_ext_rel ".syx" "/home/rohan/sw/hsc3-data/data/yamaha/"