Add more debug msgs in Event.Linux test

This commit is contained in:
Harendra Kumar 2024-07-26 19:52:20 +05:30
parent ec77b87037
commit 06a370787b

View File

@ -309,9 +309,10 @@ rootDirMove suffix events =
createFileWithParent :: FilePath -> FilePath -> IO ()
createFileWithParent file parent = do
putStrLn $ "Creating dir and opening: " ++ (parent </> file)
when (not (null file)) $
when (not (null file)) $ do
putStrLn $ "Creating dir: " ++ (parent </> takeDirectory file)
createDirectoryIfMissing True (parent </> takeDirectory file)
putStrLn $ "Opening: " ++ (parent </> file)
openFile (parent </> file) WriteMode >>= hClose
putStrLn $ "Opened: " ++ (parent </> file)