Skip to content

Commit

Permalink
Removed filtering of "ghost" objects from all low-level functions
Browse files Browse the repository at this point in the history
  • Loading branch information
VOvchinnikov committed May 22, 2024
1 parent 7229b84 commit bde82f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gcsfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ async def _get_object(self, path):
maxResults=1 if not generation else None,
versions="true" if generation else None,
)
for item in self._filter_ghost_items(resp.get("items", [])):
for item in resp.get("items", []):
if item["name"] == key and (
not generation or item.get("generation") == generation
):
Expand Down Expand Up @@ -799,7 +799,7 @@ async def _list_buckets(self):
page = await self._call("GET", "b", project=self.project, json_out=True)

assert page["kind"] == "storage#buckets"
items.extend(self._filter_ghost_items(page.get("items", [])))
items.extend(page.get("items", []))
next_page_token = page.get("nextPageToken", None)

while next_page_token is not None:
Expand All @@ -812,7 +812,7 @@ async def _list_buckets(self):
)

assert page["kind"] == "storage#buckets"
items.extend(self._filter_ghost_items(page.get("items", [])))
items.extend(page.get("items", []))
next_page_token = page.get("nextPageToken", None)

buckets = [
Expand Down

0 comments on commit bde82f0

Please sign in to comment.