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()
|
OpenOptions::new()
|
||||||
.create(true)
|
.create(true)
|
||||||
.write(true)
|
.write(true)
|
||||||
|
.truncate(true)
|
||||||
.open(filepath)?
|
.open(filepath)?
|
||||||
.write_all(uuid.as_bytes())?;
|
.write_all(uuid.as_bytes())?;
|
||||||
return Ok(uuid);
|
return Ok(uuid);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user