Skip to content

Commit 7e197d5

Browse files
committed
Create missing parent directories when unpacking
1 parent 0179791 commit 7e197d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

booster/tools/rpc-client/RpcClient.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ runTarball common (Just sock) tarFile keepGoing runOnly compareDetails = do
549549
-- unpack all directories "rpc_<something>" containing "*.json" files
550550
(dir, "") -- directory
551551
| Tar.Directory <- Tar.entryContent entry -> do
552-
createDirectoryIfMissing False dir -- create rpc dir so we can unpack files there
552+
createDirectoryIfMissing True dir -- create rpc dir so we can unpack files there
553553
acc -- no additional file to return
554554
| otherwise ->
555555
acc -- skip other directories and top-level files
@@ -560,7 +560,7 @@ runTarball common (Just sock) tarFile keepGoing runOnly compareDetails = do
560560
-- unpack json files into tmp directory
561561
let newPath = dir </> file
562562
-- current tarballs do not have dir entries, create dir here
563-
createDirectoryIfMissing False $ tmpDir </> dir
563+
createDirectoryIfMissing True $ tmpDir </> dir
564564
BS.writeFile (tmpDir </> newPath) bs
565565
(newPath :) <$> acc
566566
| otherwise ->

0 commit comments

Comments
 (0)