make_string_directory_safe

Try to make a string safe for use as a directory (or file) name.

github

Arguments

NameDescriptionType
xThe string that will be transformed.string

Example

x = 'foo + bar / baz'

make_string_directory_safe(x)
// "foo_bar_baz"