equal
deleted
inserted
replaced
902 yield st |
902 yield st |
903 |
903 |
904 def _statfiles_clustered(files): |
904 def _statfiles_clustered(files): |
905 '''Stat each file in files and yield stat or None if file does not exist. |
905 '''Stat each file in files and yield stat or None if file does not exist. |
906 Cluster and cache stat per directory to minimize number of OS stat calls.''' |
906 Cluster and cache stat per directory to minimize number of OS stat calls.''' |
907 lstat = os.lstat |
|
908 ncase = os.path.normcase |
907 ncase = os.path.normcase |
909 sep = os.sep |
908 sep = os.sep |
910 dircache = {} # dirname -> filename -> status | None if file does not exist |
909 dircache = {} # dirname -> filename -> status | None if file does not exist |
911 for nf in files: |
910 for nf in files: |
912 nf = ncase(nf) |
911 nf = ncase(nf) |