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