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
  • 4,206
  • 6
  • 41
  • 54

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
  • 7,297
  • 5
  • 39
  • 50