factor out getDirectoryContentsRecursive
function in GHCup.Utils.Prelude
This commit is contained in:
parent
2277013c76
commit
6379a26afb
@ -340,8 +340,8 @@ copyDirectoryRecursive srcDir destDir = do
|
|||||||
-- parent directories. The list is generated lazily so is not well defined if
|
-- parent directories. The list is generated lazily so is not well defined if
|
||||||
-- the source directory structure changes before the list is used.
|
-- the source directory structure changes before the list is used.
|
||||||
--
|
--
|
||||||
getDirectoryContentsRecursive :: FilePath -> IO [FilePath]
|
getDirectoryContentsRecursive :: FilePath -> IO [FilePath]
|
||||||
getDirectoryContentsRecursive topdir = recurseDirectories [""]
|
getDirectoryContentsRecursive topdir = recurseDirectories [""]
|
||||||
where
|
where
|
||||||
recurseDirectories :: [FilePath] -> IO [FilePath]
|
recurseDirectories :: [FilePath] -> IO [FilePath]
|
||||||
recurseDirectories [] = return []
|
recurseDirectories [] = return []
|
||||||
|
Loading…
Reference in New Issue
Block a user