create destination directories before rename tmp file

This commit is contained in:
yggverse 2025-08-08 01:19:04 +03:00
parent e2d2b513cc
commit 9a6e6dbb0c

View file

@ -68,7 +68,7 @@ impl Preload {
n.to_string_lossy(), n.to_string_lossy(),
) )
} }
// fs::create_dir_all(n.parent().unwrap())?; fs::create_dir_all(n.parent().unwrap())?;
fs::rename(o, n)? fs::rename(o, n)?
} }
} }