mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Use medium ID as folder name
This commit is contained in:
parent
12b4ba681c
commit
622f1312fb
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ impl MediumPreview {
|
|||
// Create a new directory in the music library path for the imported medium.
|
||||
|
||||
let music_library_path = self.handle.backend.get_music_library_path().unwrap();
|
||||
let directory = PathBuf::from(&self.medium.name);
|
||||
let directory = PathBuf::from(&self.medium.id);
|
||||
std::fs::create_dir(&music_library_path.join(&directory))?;
|
||||
|
||||
// Copy the tracks to the music library.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue