update
This commit is contained in:
+6
-2
@@ -257,8 +257,12 @@ julia> data = String(get_file(storage, "test.json"))
|
||||
"\"{\\\"status\\\": \\\"active\\\"}\""
|
||||
```
|
||||
"""
|
||||
function get_file(storage::GarageStorage, key::String)::Vector{UInt8}
|
||||
return AWSS3.s3_get(storage.config, storage.bucket, key)
|
||||
function get_file(storage::GarageStorage, key::String)::Union{Vector{UInt8}, Nothing}
|
||||
try
|
||||
return AWSS3.s3_get(storage.config, storage.bucket, key)
|
||||
catch
|
||||
return nothing
|
||||
end
|
||||
end
|
||||
|
||||
""" List all object keys in the Garage S3 bucket.
|
||||
|
||||
Reference in New Issue
Block a user