This commit is contained in:
2026-08-28 19:48:29 +07:00
parent a559824faa
commit 1fc0f790d9
+5 -1
View File
@@ -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.