Re: remove a directory with special chars

2006-03-19 Thread Peter Hansen
andy wrote: > Is there a special reason you want to use Python to do this? The Linux > command shell would probably do exactly the same job (you can specify > backslash-escaped characters at the command-line)... > > anyway to do it in python: > > import os > os.remove("/path/to/the/file/.\17

Re: remove a directory with special chars

2006-03-18 Thread andy
Is there a special reason you want to use Python to do this? The Linux command shell would probably do exactly the same job (you can specify backslash-escaped characters at the command-line)... anyway to do it in python: import os os.remove("/path/to/the/file/.\177\177") Note that under Lin

remove a directory with special chars

2006-03-17 Thread s99999999s2003
hi i have a filen with a funny name like \177\177. I guess someone hit backspace or something before saving it. It's hidden and it shows when i type ls with the -b switch on unix. How can i remove this file using python? -- http://mail.python.org/mailman/listinfo/python-list

remove a directory with special chars

2006-03-17 Thread s99999999s2003
hi i have a filen with a funny name like \177\177. I guess someone hit backspace or something before saving it. It's hidden and it shows when i type ls with the -b switch on unix. How can i remove this file using python? thanks -- http://mail.python.org/mailman/listinfo/python-list