diff options
| author | jakka <jakkadoujin@gmail.com> | 2025-06-22 14:52:13 +0300 |
|---|---|---|
| committer | jakka <jakkadoujin@gmail.com> | 2025-06-22 14:52:13 +0300 |
| commit | 014b75b04e15a8e2e1609ae25cbe393e4e8dbb1d (patch) | |
| tree | 0968f2831868600b073be6af9eddd90882e75d45 /src/flac.rs | |
| parent | 2a60a5f68f877cb05dd071703e456dbf050eb8c9 (diff) | |
file renaming fix
Diffstat (limited to 'src/flac.rs')
| -rw-r--r-- | src/flac.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flac.rs b/src/flac.rs index 85a75f1..05d915f 100644 --- a/src/flac.rs +++ b/src/flac.rs @@ -196,7 +196,7 @@ pub fn encode_file(filename: impl AsRef<Path>) -> Result<()> { let hash = filencoder.encode(enc)?; filencoder.write_tags(hash)?; - std::fs::remove_file(filencoder.temp_name())?; + std::fs::rename(filencoder.temp_name(), filencoder.filename)?; Ok(()) } |
