Encode filenames to safe format
Amit Khemka
khemkaamit at gmail.com
Thu Jul 20 10:47:52 EDT 2006
On 7/20/06, Dara Durum <durumdara at gmail.com> wrote:
> Hi !
>
> I want to encode filenames to safe format, like in browser url (space ->
> %20, etc.).
> What the module and function name that helps me in this project ?
>
import urllib
urllib.quote('file name')
cheers,
amit
--
----
Amit Khemka -- onyomo.com
Home Page: www.cse.iitd.ernet.in/~csd00377
Endless the world's turn, endless the sun's Spinning, Endless the quest;
I turn again, back to my own beginning, And here, find rest.
More information about the Python-list
mailing list