os.remove / windows / spaces?
John Machin
sjmachin at lexicon.net
Fri Mar 28 06:25:06 EST 2003
"j2" <spamfilter2 at mupp.net> wrote in message news:<3e83f929$1_3 at read01.nntp.se.dataphone.net>...
> How do i make the below be able to handle paths with spaces in it?
> File "C:\Scripts\AntiVirus\NAIUPT.py", line 184, in ?
> os.remove(pubdir + OldZipFileName)
> OSError: [Errno 22] Invalid argument: '"u:\\Program\\Network
> Associates\\tvd\\updates\\dat-4254.zip"'
> >>>
RTFErrormessage. The argument path has " at each end -- not a valid
character in a path in Windows.
More information about the Python-list
mailing list