Lines Matching refs:scandir
319 scandir = path_cls._scandir
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):
341 for p in self.successor._select_from(path, is_dir, exists, scandir):
353 def _select_from(self, parent_path, is_dir, exists, scandir):
355 with scandir(parent_path) as scandir_it:
372 for p in self.successor._select_from(path, is_dir, exists, scandir):
383 def _iterate_directories(self, parent_path, is_dir, scandir):
386 with scandir(parent_path) as scandir_it:
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):
937 # includes scandir(), which is used to implement glob().
938 return os.scandir(self)