This commit is contained in:
Joey Hess 2013-11-20 13:44:49 -04:00
parent 9c9a3c10ce
commit a1f8621efc

View file

@ -62,7 +62,7 @@ withTmpDirIn :: FilePath -> Template -> (FilePath -> IO a) -> IO a
withTmpDirIn tmpdir template = bracket create remove
where
remove d = whenM (doesDirectoryExist d) $
return () -- removeDirectoryRecursive d
removeDirectoryRecursive d
create = do
createDirectoryIfMissing True tmpdir
makenewdir (tmpdir </> template) (0 :: Int)