Convert a string to a valid filename
[dependencies]
filenamify = "0.1"
use filenamify::filenamify;
let safe_filename = filenamify("//foo/bar/file");
assert_eq!(safe_filename, "_foo_bar_file");
filenamify-rs © Chawye Hsu. Licensed under either of Apache-2.0 or MIT license at your option.
Blog · GitHub @chawyehsu · Twitter @chawyehsu