pub fn add(&mut self, file: PathBuf, band: String) {
        let band = band.trim().to_lowercase();
        match self.tree.get_mut(&band) {
            Some(list) => {
                list.push(file);
            }
            None => {
                self.tree.insert(band, vec![file]);
            }
        }
    }
// Add a song with known band
Add a song with known band
Add a song with known band
pub fn add(&mut self, file: PathBuf, band: String) {
        let band = band.trim().to_lowercase();
        match self.tree.get_mut(&band) {
            Some(list) => {
                list.push(file);
            }
            None => {
                self.tree.insert(band, vec![file]);
            }
        }
    }
pub fn add ( & mut self , file : PathBuf , band : String ) { let band = band . trim ( ) . to_lowercase ( ) ; match self . tree . get_mut ( & band ) { Some ( list ) => { list . push ( file ) ; } None => { self . tree . insert ( band , vec ! [ file ] ) ; } } }
Add a song with known band
Add a song with known band
&mut self
file
PathBuf
band
String
&mut self
file
PathBuf
band
String