Get directory listing only once