equal
deleted
inserted
replaced
360 |
360 |
361 def _normalize(self, path, knownpath): |
361 def _normalize(self, path, knownpath): |
362 norm_path = os.path.normcase(path) |
362 norm_path = os.path.normcase(path) |
363 fold_path = self._foldmap.get(norm_path, None) |
363 fold_path = self._foldmap.get(norm_path, None) |
364 if fold_path is None: |
364 if fold_path is None: |
365 if knownpath or not os.path.exists(os.path.join(self._root, path)): |
365 if knownpath or not os.path.lexists(os.path.join(self._root, path)): |
366 fold_path = path |
366 fold_path = path |
367 else: |
367 else: |
368 fold_path = self._foldmap.setdefault(norm_path, |
368 fold_path = self._foldmap.setdefault(norm_path, |
369 util.fspath(path, self._root)) |
369 util.fspath(path, self._root)) |
370 return fold_path |
370 return fold_path |