FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a 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

How do I use Python/Perl?
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)
Does frihost still support Python for CGI programming
Reply to topic    Frihost Forum Index -> Computers -> Software

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