extra-0.3.2: Extra functions I use.

Safe HaskellSafe-Inferred




withCurrentDirectory :: FilePath -> IO a -> IO aSource

Remember that the current directory is a global variable, so calling this function multithreaded is almost certain to go wrong. Avoid changing the dir if you can.

getDirectoryContentsRecursive :: FilePath -> IO [FilePath]Source

Find all the files within a directory, including recursively. Looks through all folders, including those beginning with ..

createDirectoryPrivate :: String -> IO ()Source

Create a directory with permissions so that only the current user can view it. On Windows this function is equivalent to createDirectory.