mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Fix file naming for folder import
This commit is contained in:
parent
52f0df7097
commit
de35eb4e90
1 changed files with 1 additions and 2 deletions
|
|
@ -172,10 +172,9 @@ impl MediumEditor {
|
|||
// Copy the corresponding audio file to the music library.
|
||||
|
||||
let track_source = &source_tracks[track_data.track_source];
|
||||
let file_name = format!("track_{:02}.flac", track_source.number);
|
||||
|
||||
let mut track_path = path.clone();
|
||||
track_path.push(&file_name);
|
||||
track_path.push(track_source.path.file_name().unwrap());
|
||||
|
||||
std::fs::copy(&track_source.path, &track_path)?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue