Lines Matching refs:parent_path
313 def select_from(self, parent_path):
314 """Iterate over all child paths of `parent_path` matched by this
315 selector. This can contain parent_path itself."""
316 path_cls = type(parent_path)
320 if not is_dir(parent_path):
322 return self._select_from(parent_path, is_dir, exists, scandir)
327 def _select_from(self, parent_path, is_dir, exists, scandir):
328 yield parent_path
337 def _select_from(self, parent_path, is_dir, exists, scandir):
339 path = parent_path._make_child_relpath(self.name)
353 def _select_from(self, parent_path, is_dir, exists, scandir):
355 with scandir(parent_path) as scandir_it:
371 path = parent_path._make_child_relpath(name)
383 def _iterate_directories(self, parent_path, is_dir, scandir):
384 yield parent_path
386 with scandir(parent_path) as scandir_it:
396 path = parent_path._make_child_relpath(entry.name)
402 def _select_from(self, parent_path, is_dir, exists, scandir):
407 for starting_point in self._iterate_directories(parent_path, is_dir, scandir):