trw.utils.safe_filename
¶
Module Contents¶
Functions¶
|
Replace problematic characters (e.g., '/' or '#') considering Windows/Linux based OSes |
- trw.utils.safe_filename.safe_filename(filename: str, replace_with: str = '_') str ¶
Replace problematic characters (e.g., ‘/’ or ‘#’) considering Windows/Linux based OSes :param replace_with: the character to be replaced with :param filename: a filename
- Returns
a string that can be used as filename