diff --git a/src/detection/song.rs b/src/detection/song.rs new file mode 100644 index 0000000..03563a6 --- /dev/null +++ b/src/detection/song.rs @@ -0,0 +1,15 @@ + + +pub fn file_type_from_filepath(filepath: &str) -> Result { + 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) + } + } +}