stupid question about os.listdir

Jason Kratz eat at
Fri Jun 27 05:06:04 CEST 2003

Ben Finney wrote:
> On Fri, 27 Jun 2003 02:22:36 GMT, Jason Kratz wrote:
>>os.listdir takes a pathname as an arg but it doesn't actually list the
>>contents of the dir I pass in.
> Please reduce the problem to a simple script that others can examine,
> and post it here.  If the behaviour is as you say, it should be only a
> few lines long:
>     import os
>     os.listdir( 'somethingyouthinkshouldwork' )

Ben...I tried the above in a new script file (with print os.listdir) and 
it works as I thought my other should.   Which means i'm doing something 
wrong when passing the path in to my function but I'm not sure what.  ugh.

More information about the Python-list mailing list