Re: os.listdir path error
- From: kyosohma@xxxxxxxxx
- Date: Fri, 03 Aug 2007 13:06:50 -0700
On Aug 3, 2:50 pm, vedrandeko...@xxxxxxxxxxxxxx wrote:
Hello
Here is my simple listdir example:
import os
os.listdir("C:\Python24\") # This directory relly exists
Here is my error:
WindowsError: [Errno 3] The system cannot find the path specified: 'l/
*.*'
Regards,
Vedran
I get "SyntaxError: EOL while scanning single-quoted string", which is
what should happen when you escape the double-quotes at the end. Not
sure how you're getting that WindowsErrors.
If I do os.listdir('c:\python24') instead, it works fine.
Mike
.
- Follow-Ups:
- Re: os.listdir path error
- From: Tim Roberts
- Re: os.listdir path error
- References:
- os.listdir path error
- From: vedrandekovic
- os.listdir path error
- Prev by Date: Re: os.listdir path error
- Next by Date: Re: Trying to find zip codes/rest example
- Previous by thread: Re: os.listdir path error
- Next by thread: Re: os.listdir path error
- Index(es):