Crate filenamify

source ·
Expand description

A tiny crate providing a function to convert a input string to a valid filename.

§Examples

Convert a input string to a valid filename.

use filenamify::filenamify;
let safe_filename = filenamify("//foo/bar/file");
assert_eq!(safe_filename, "_foo_bar_file");

Functions§

  • Convert a input string to a valid filename.