tsk-45: Identify type of Song #48

Merged
phoenix merged 15 commits from tsk-45 into main 2025-10-22 02:26:19 +00:00
Showing only changes of commit fa5203013c - Show all commits

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)
}
}
}