Tag Archives: sanitize_file_name_chars


Sanitizes a filename replacing whitespace with dashesRemoves special characters that are illegal in filenames on certain operating systems and special characters requiring special escaping to manipulate at the command line. Replaces spaces and consecutive dashes with a single dash. Trim period, dash and underscore from beginning and end of filename.


Continue reading