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
|
||||
-- the source directory structure changes before the list is used.
|
||||
--
|
||||
getDirectoryContentsRecursive :: FilePath -> IO [FilePath]
|
||||
getDirectoryContentsRecursive topdir = recurseDirectories [""]
|
||||
getDirectoryContentsRecursive :: FilePath -> IO [FilePath]
|
||||
getDirectoryContentsRecursive topdir = recurseDirectories [""]
|
||||
where
|
||||
recurseDirectories :: [FilePath] -> IO [FilePath]
|
||||
recurseDirectories [] = return []
|
||||
|
Loading…
Reference in New Issue
Block a user