Skip to content

Commit

Permalink
Merge pull request #58 from jcrossley3/main
Browse files Browse the repository at this point in the history
fix: create extract_dir on same filesystem as out_dir
  • Loading branch information
brianheineman authored May 1, 2024
2 parents 7b8ba24 + 2253a40 commit 4c64041
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions postgresql_archive/src/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,7 @@ pub async fn extract(bytes: &Bytes, out_dir: &Path) -> Result<()> {
return Ok(());
}

let extract_dir = tempfile::tempdir()?.into_path();
create_dir_all(&extract_dir)?;

let extract_dir = tempfile::tempdir_in(parent_dir)?.into_path();
debug!("Extracting archive to {}", extract_dir.to_string_lossy());

for archive_entry in archive.entries()? {
Expand Down

0 comments on commit 4c64041

Please sign in to comment.