Is there an easy way to escape POSIX filenames/paths in Python? By easy, I mean via the standard library of some other well-developed and well-maintained library. In essence, I want to have a bash-like "auto-escaping". You can observe this by using bash's autocompletion (hit the TAB key).
For instance, from:
to:
Thanks in advance!
For instance, from:
| Code: |
| a" b " c.txt |
to:
| Code: |
| a\"\ b\ \"\ c.txt |
Thanks in advance!
