Lines Matching refs:is_dir
317 is_dir = path_cls.is_dir
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):
337 def _select_from(self, parent_path, is_dir, exists, scandir):
340 if (is_dir if self.dironly else exists)(path):
341 for p in self.successor._select_from(path, is_dir, exists, scandir):
353 def _select_from(self, parent_path, is_dir, exists, scandir):
360 # "entry.is_dir()" can raise PermissionError
363 if not entry.is_dir():
372 for p in self.successor._select_from(path, is_dir, exists, scandir):
383 def _iterate_directories(self, parent_path, is_dir, scandir):
391 entry_is_dir = entry.is_dir(follow_symlinks=False)
397 for p in self._iterate_directories(path, is_dir, scandir):
402 def _select_from(self, parent_path, is_dir, exists, scandir):
407 for starting_point in self._iterate_directories(parent_path, is_dir, scandir):
408 for p in successor_select(starting_point, is_dir, exists, scandir):
1125 if not exist_ok or not self.is_dir():
1245 def is_dir(self):
1283 if not self.exists() or not self.is_dir():