You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defget(self, key: str) ->str:
"""get the contents of the given key"""selected_key=self.key(key)
returnselected_key.get()
bucket=bucketstore.get(Config().bucket)
content=bucket.get('folder/fileName.txt')
# b"Hello I'm your file 'folder/fileName.txt' content."content.decode('utf-8') # is possiblecontent.encode('utf-8') # is not possible
This might be a bit confusing when trying to encode/decode a string/bytes.
Sorry for beeing nit picky or if i missed something.
PS: Awesome repo 👍 😃
The text was updated successfully, but these errors were encountered:
This might be a bit confusing when trying to
encode
/decode
astring
/bytes
.Sorry for beeing nit picky or if i missed something.
PS: Awesome repo 👍 😃
The text was updated successfully, but these errors were encountered: