use std::path::Path; pub mod ascii_reduce; pub(self) mod music_scanner; pub mod replaygain; pub(self) mod tag_extractor; pub mod transcoder; pub use music_scanner::scan_for_music; pub use tag_extractor::extract_tags_from_file; pub fn is_supported_file_extension(file_path: &Path) -> bool { let ext = file_path.extension(); if ext.is_none() { return false; } let ext = ext.unwrap().to_str().unwrap(); matches!(ext, "mp3" | "flac") }