FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Filename escaping in Python





djclue917
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:

Code:
a" b " c.txt


to:

Code:
a\"\ b\ \"\ c.txt


Thanks in advance!
Related topics
Monty Python
Python Tutorial
Python
python tutorials
python tutorials
Python books
Python Bursts After Trying to Eat Gator
python support
python
pls suggest software to generate thumbnails etc...
Unix Python Code Execution
Python
Python(cont)
How do I use Python/Perl?
Reply to topic    Frihost Forum Index -> Computers -> Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.