Lines Matching refs:is_dir
402 is_dir = path_cls.is_dir
405 if not is_dir(parent_path):
407 return self._select_from(parent_path, is_dir, exists, scandir)
412 def _select_from(self, parent_path, is_dir, exists, scandir): argument
422 def _select_from(self, parent_path, is_dir, exists, scandir): argument
425 if (is_dir if self.dironly else exists)(path):
426 for p in self.successor._select_from(path, is_dir, exists, scandir):
438 def _select_from(self, parent_path, is_dir, exists, scandir): argument
448 if not entry.is_dir():
457 for p in self.successor._select_from(path, is_dir, exists, scandir):
468 def _iterate_directories(self, parent_path, is_dir, scandir): argument
476 entry_is_dir = entry.is_dir()
482 for p in self._iterate_directories(path, is_dir, scandir):
487 def _select_from(self, parent_path, is_dir, exists, scandir): argument
492 for starting_point in self._iterate_directories(parent_path, is_dir, scandir):
493 for p in successor_select(starting_point, is_dir, exists, scandir):
1182 if not exist_ok or not self.is_dir():
1298 def is_dir(self): member in Path
1336 if not self.exists() or not self.is_dir():