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