0

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?

Pavel Vlasov
  • 3,940
  • 6
  • 37
  • 53

1 Answers1

0

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.

Community
  • 1
  • 1
Adriano Varoli Piazza
  • 6,993
  • 5
  • 38
  • 49