Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
laughingman7743 committed Dec 29, 2024
1 parent dd13a29 commit 0dd38b4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pyathena/filesystem/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,13 +427,11 @@ def _find(
bucket, key, _ = self.parse_path(path)
prefix = kwargs.pop("prefix", "")
if maxdepth:
return super().find(
path=path,
maxdepth=maxdepth,
withdirs=withdirs,
detail=True,
**kwargs
).values()
return (
super()
.find(path=path, maxdepth=maxdepth, withdirs=withdirs, detail=True, **kwargs)
.values()
)

files = self._ls_dirs(path, prefix=prefix, delimiter="")
if not files and key:
Expand Down

0 comments on commit 0dd38b4

Please sign in to comment.