Dealing with files...

lost lost at soul.net
Fri Apr 25 19:37:09 EDT 2003


On Fri, 25 Apr 2003 22:51:12 +0000, Alex Martelli wrote:

> for each_file in os.dir('/var/path/to/files/'):

actually, not quite what i was looking for :)
At this line, I get:
AttributeError: 'module' object has no attribute 'dir'

btw, I'm using a valid file path, not the one in the example - if that
makes any difference.
My python version is 2.2.1, on Red Hat Linux 8.

Thanks for the help!




More information about the Python-list mailing list