remove old function from library.rs
This commit is contained in:
@@ -147,29 +147,6 @@ impl Library {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
fn get_songs() -> Vec<PathBuf> {
|
|
||||||
let mut songs: Vec<PathBuf> = vec![];
|
|
||||||
|
|
||||||
|
|
||||||
let flacs = WalkDir::new("/mnt/media/music")
|
|
||||||
.into_iter()
|
|
||||||
.filter_map(Result::ok)
|
|
||||||
.filter(|e| {
|
|
||||||
e.file_type().is_file() && e.path().extension().is_some_and(|ext| ext == "flac")
|
|
||||||
})
|
|
||||||
.map(|e| e.into_path());
|
|
||||||
|
|
||||||
for path in flacs {
|
|
||||||
// `path` is a PathBuf
|
|
||||||
//println!("{}", path.display());
|
|
||||||
songs.push(path);
|
|
||||||
}
|
|
||||||
songs.sort();
|
|
||||||
songs
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
fn get_songs(library: &Path) -> Vec<PathBuf> {
|
fn get_songs(library: &Path) -> Vec<PathBuf> {
|
||||||
let mut songs: Vec<PathBuf> = WalkDir::new(library)
|
let mut songs: Vec<PathBuf> = WalkDir::new(library)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
|||||||
Reference in New Issue
Block a user