dircache.listdir() or os.listdir()

Discussion in 'Python' started by kai, Apr 11, 2006.

  1. kai

    kai Guest

    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.
     
    kai, Apr 11, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jason Kratz

    stupid question about os.listdir

    Jason Kratz, Jun 27, 2003, in forum: Python
    Replies:
    11
    Views:
    1,110
    Erik Max Francis
    Jun 27, 2003
  2. Hari

    os.listdir

    Hari, Sep 8, 2003, in forum: Python
    Replies:
    6
    Views:
    935
    Graham Fawcett
    Sep 9, 2003
  3. kai
    Replies:
    1
    Views:
    366
  4. kai
    Replies:
    0
    Views:
    314
  5. kai
    Replies:
    0
    Views:
    309
Loading...

Share This Page