truncate
This commit is contained in:
parent
4dc46d2ab2
commit
4161dd8df8
@ -86,6 +86,7 @@ pub fn create_or_load_uuid(mut idfile: &str, size: Option<u8>) -> Result<String>
|
||||
OpenOptions::new()
|
||||
.create(true)
|
||||
.write(true)
|
||||
.truncate(true)
|
||||
.open(filepath)?
|
||||
.write_all(uuid.as_bytes())?;
|
||||
return Ok(uuid);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user