Skip to main content

file_stem

Function file_stem 

Source
pub fn file_stem(name: &str) -> String
Expand description

A file-name-safe version of a query name, for output file names (--tsv-dir, the desktop app’s exports): characters other than letters, digits, ., - and _ become _; leading and trailing dots and underscores are removed (no hidden files); dima if nothing is left.