Skip to content

Commit

Permalink
docs: update for nsk
Browse files Browse the repository at this point in the history
  • Loading branch information
amfage committed Jan 29, 2024
1 parent e6fd468 commit 8696f43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/files/fs_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def exists(path: str, needs_credentials: bool = False) -> bool:
Raises:
ce: ClientError
nsb: NoSuchBucket
nsk: NoSuchKey
Returns:
True if the S3 Object exists
Expand All @@ -111,8 +112,6 @@ def exists(path: str, needs_credentials: bool = False) -> bool:
return True
return False

# # load() fetch the metadata, not the data. Calls a `head` behind the scene.
# s3.Object(s3_path, key).load()
s3_object = s3.Object(s3_path, key)
s3_object.get()["ContentLength"]
return True
Expand Down

0 comments on commit 8696f43

Please sign in to comment.