Lines Matching refs:path
223 def path2areas(self, path): argument
231 is_dir = os.path.isdir(path)
235 path = os.path.normpath(os.path.join(
236 os.path.relpath(os.getcwd(), self._toplevel),
237 path))
240 path += "/"
243 if area._contains(path)]
254 for path in _git("diff", "--name-only", commits, "--").splitlines():
255 res.update(self.path2areas(path))
268 for path in args.paths:
269 if not os.path.exists(path):
270 _serr("'{}': no such file or directory".format(path))
274 for path in args.paths:
275 areas = self.path2areas(path)
278 orphaned.append(path)
367 for path in _ls_files():
369 if area._contains(path):
370 print(path)
379 for path in _ls_files():
380 if area._contains(path):
381 print(path)
386 if args.path is not None and not os.path.exists(args.path):
387 _serr("'{}': no such file or directory".format(args.path))
389 for path in _ls_files(args.path):
391 if area._contains(path):
394 print(path) # We get here if we never hit the 'break'
425 def _contains(self, path): argument
428 return self._match_fn and self._match_fn(path) and not \
429 (self._exclude_match_fn and self._exclude_match_fn(path))
500 def _load_maintainers(path): argument
505 with open(path, encoding="utf-8") as f:
509 raise MaintainersError("{}: YAML error: {}".format(path, e))
511 _check_maintainers(path, yaml)
577 if all(path.is_dir() for path in paths):
626 def _ls_files(path=None): argument
628 if path is not None:
629 cmd.append(path)