mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +00:00
create destination directories before rename tmp file
This commit is contained in:
parent
e2d2b513cc
commit
9a6e6dbb0c
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ impl Preload {
|
|||
n.to_string_lossy(),
|
||||
)
|
||||
}
|
||||
// fs::create_dir_all(n.parent().unwrap())?;
|
||||
fs::create_dir_all(n.parent().unwrap())?;
|
||||
fs::rename(o, n)?
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue