dircache.listdir() or os.listdir()

kai kairosenthal at tiscali.de
Tue Apr 11 05:49:36 EDT 2006


Hello,

I use dircache.listdir(myDir) in my module repeatedly. On OS WIN 2000
listdir() will re-read the directory structure! But on AIX, listdir()
will not re-read the directory structure (see Python Library
Reference).
I work with python version 2.2.

Now my 2 questions:
Why does dircache.listdir() work different?
Can I change in my modules dircache.listdir() with os.listdir() without
problems. I want to use the re-read functionality.

Thanks for your hints, Kai.




More information about the Python-list mailing list