Skip to content

Commit

Permalink
Replace check with all
Browse files Browse the repository at this point in the history
  • Loading branch information
johandahlberg committed Aug 22, 2024
1 parent 92132a1 commit 09f5b47
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fsspec/implementations/zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,7 @@ def find(self, path, maxdepth=None, withdirs=False, detail=False, **kwargs):

def _matching_starts(file_path):
file_parts = filter(lambda s: bool(s), file_path.split("/"))
for a, b in zip(path_parts, file_parts):
if a != b:
return False
return True
return all(a == b for a, b in zip(path_parts, file_parts))

self._get_dirs()

Expand Down

0 comments on commit 09f5b47

Please sign in to comment.