Generic way to check validity of file name in Python?
Generic way to check validity of file name in Python? Question: Creating a file can fail in Python because of various file name related reasons: the file path is too long (see e.g.: what-is-the-maximum-length-of-a-file-path-in-ubuntu ) the file name may be too long, as the file system is encrypted – see e.g. comment in answer to …