From 4161dd8df8c7a25899f763372ac284866bb47e7f Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 25 Dec 2025 22:01:01 +0800 Subject: [PATCH] truncate --- src/utils/helper.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/helper.rs b/src/utils/helper.rs index 33adc50..b21e387 100644 --- a/src/utils/helper.rs +++ b/src/utils/helper.rs @@ -86,6 +86,7 @@ pub fn create_or_load_uuid(mut idfile: &str, size: Option) -> Result OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(filepath)? .write_all(uuid.as_bytes())?; return Ok(uuid);