Monday, 30 May 2016

Haskell: Search for files

Haskell System.Directory module provides number of functions to search for a file, executables on your machine. Following tables summarizes the functions provided by System.Directory module for file searching.

Function
Signature
Description
findExecutable :: String -> IO (Maybe FilePath)
Get the path of given executable
findExecutables :: String -> IO [FilePath]
Get all the paths of executable file
findExecutablesInDirectories:: [FilePath] -> String -> IO [FilePath]
Search for an executable in given directories
findFile :: [FilePath] -> String -> IO (Maybe FilePath)
Search for a file in given directories
findFiles :: [FilePath] -> String -> IO [FilePath]
Search for a file in given directories
findFilesWith:: (FilePath -> IO Bool) -> [FilePath] -> String -> IO [FilePath]
Get all the files that satisfiy given property






Previous                                                 Next                                                 Home

No comments:

Post a Comment