Lines Matching refs:path
212 def path2areas(self, path): argument
220 is_dir = os.path.isdir(path)
224 path = os.path.normpath(os.path.join(
225 os.path.relpath(os.getcwd(), self._toplevel),
226 path))
229 path += "/"
232 if area._contains(path)]
243 for path in _git("diff", "--name-only", commits, "--").splitlines():
244 res.update(self.path2areas(path))
257 for path in args.paths:
258 if not os.path.exists(path):
259 _serr("'{}': no such file or directory".format(path))
263 for path in args.paths:
264 areas = self.path2areas(path)
267 orphaned.append(path)
326 for path in _ls_files():
328 if area._contains(path):
329 print(path)
338 for path in _ls_files():
339 if area._contains(path):
340 print(path)
345 if args.path is not None and not os.path.exists(args.path):
346 _serr("'{}': no such file or directory".format(args.path))
348 for path in _ls_files(args.path):
350 if area._contains(path):
353 print(path) # We get here if we never hit the 'break'
384 def _contains(self, path): argument
387 return self._match_fn and self._match_fn(path) and not \
388 (self._exclude_match_fn and self._exclude_match_fn(path))
459 def _load_maintainers(path): argument
464 with open(path, encoding="utf-8") as f:
468 raise MaintainersError("{}: YAML error: {}".format(path, e))
470 _check_maintainers(path, yaml)
536 if all(path.is_dir() for path in paths):
585 def _ls_files(path=None): argument
587 if path is not None:
588 cmd.append(path)