tsk-45: Adding functionality for itdentifying Song

This commit is contained in:
2025-10-21 20:02:19 -04:00
parent 13bc89cd98
commit fa5203013c

15
src/detection/song.rs Normal file
View File

@@ -0,0 +1,15 @@
pub fn file_type_from_filepath(filepath: &str) -> Result<String, std::io::Error> {
match infer::get_from_path(filepath) {
Ok(Some(kind)) => {
Ok(String::new())
}
Ok(None) => {
Err(std::io::Error::other("File type not determined"))
}
Err(err) => {
Err(err)
}
}
}