Skip to content

Commit

Permalink
Revert "Fix S3 recursion for fake directory (#199)" (#201)
Browse files Browse the repository at this point in the history
This reverts commit f951e21.
  • Loading branch information
pjbull authored Feb 3, 2022
1 parent f951e21 commit 72f0725
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cloudpathlib/s3/s3client.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ def _list_dir(self, cloud_path: S3Path, recursive=False) -> Iterable[S3Path]:

# files in the directory
for result_key in result.get("Contents", []):
if result_key.get("Size") > 0:
yield self.CloudPath(f"s3://{cloud_path.bucket}/{result_key.get('Key')}")
yield self.CloudPath(f"s3://{cloud_path.bucket}/{result_key.get('Key')}")

def _move_file(self, src: S3Path, dst: S3Path, remove_src: bool = True) -> S3Path:
# just a touch, so "REPLACE" metadata
Expand Down

0 comments on commit 72f0725

Please sign in to comment.