Skip to main content

detect

Function detect 

Source
pub fn detect(path: &str) -> Option<Kind>
Expand description

A file’s kind from its path on the host: relative to the root (etc/crontab), absolute (/etc/crontab), or as a collection stores it ([root]/etc/crontab, uac/[root]/etc/crontab); / or \ separated. None for files this crate doesn’t read.