equal
deleted
inserted
replaced
230 cache = dircache.get(dir, None) |
230 cache = dircache.get(dir, None) |
231 if cache is None: |
231 if cache is None: |
232 try: |
232 try: |
233 dmap = dict([(normcase(n), s) |
233 dmap = dict([(normcase(n), s) |
234 for n, k, s in osutil.listdir(dir, True) |
234 for n, k, s in osutil.listdir(dir, True) |
235 if getkind(s) in _wantedkinds]) |
235 if getkind(s.st_mode) in _wantedkinds]) |
236 except OSError, err: |
236 except OSError, err: |
237 # handle directory not found in Python version prior to 2.5 |
237 # handle directory not found in Python version prior to 2.5 |
238 # Python <= 2.4 returns native Windows code 3 in errno |
238 # Python <= 2.4 returns native Windows code 3 in errno |
239 # Python >= 2.5 returns ENOENT and adds winerror field |
239 # Python >= 2.5 returns ENOENT and adds winerror field |
240 # EINVAL is raised if dir is not a directory. |
240 # EINVAL is raised if dir is not a directory. |