Python: get list of characters inapplicable for file naming?
In a Python script I want to know which characters 开发者_运维问答are inapplicable for use in file names under current OS/FileSystem. I'd like to create files without errors. Is there such feature in Python?
I hate to answer a question with another question, but this question seems to be what you are looking for: turn a string into a valid filename in Python. Otherwise, the list of reserved characters by OS is here.
精彩评论