From 9a6e6dbb0c486540097708e6c345882e3a0bf940 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 8 Aug 2025 01:19:04 +0300 Subject: [PATCH] create destination directories before rename tmp file --- src/preload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preload.rs b/src/preload.rs index 86efa2e..c73f779 100644 --- a/src/preload.rs +++ b/src/preload.rs @@ -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)? } }