Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
laughingman7743 committed May 5, 2024
1 parent 74ce400 commit da99d89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyathena/filesystem/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,11 @@ def _ls_dirs(
if files:
self.dircache[path] = files
else:
files = self.dircache[path]
cache = self.dircache[path]
if not isinstance(cache, list):
files = [cache]
else:
files = cache
return files

def ls(
Expand Down

0 comments on commit da99d89

Please sign in to comment.