diff --git a/pydrive2/fs/spec.py b/pydrive2/fs/spec.py index d4e044ea..c5abe03d 100644 --- a/pydrive2/fs/spec.py +++ b/pydrive2/fs/spec.py @@ -476,12 +476,7 @@ def find(self, path, detail=False, **kwargs): cached = base in self._ids_cache["dirs"] if not cached: dir_ids = self._path_to_item_ids(base) - if dir_ids: - dir_id = min(dir_ids) - self._cache_path_id(base, dir_id) - for item in self._gdrive_list_ids([dir_id]): - item_path = posixpath.join(base, item["title"]) - self._cache_path_id(item_path, item["id"]) + self._cache_path_id(base, *dir_ids) dir_ids = [self._ids_cache["ids"].copy()] contents = []