jeasai 26d67b80df
Fix object download to file (#105)
The ObjectContent::to_file() function was not working properly,
as it could not write in a temporary file (created with tokio::fs::File::open(),
which opens a file in read-only mode).

To solve this issue, modified the way temporary files are opened to be
able to write inside of it.

* Add an example to download a file

This new example demonstrates how to download an object and store its
content into a file.

---------

Co-authored-by: Henk-Jan Lebbink <henkjan.lebbink@gmail.com>
Co-authored-by: Jean Sainctavit <jean.sainctavit@qarnot-computing.com>
2025-01-23 23:42:40 +01:00
2025-01-23 23:42:40 +01:00
2024-12-14 19:31:51 -08:00
2019-06-18 12:23:56 -07:00
2025-01-23 23:42:40 +01:00
2019-05-15 15:39:44 -07:00
2025-01-23 23:42:40 +01:00

MinIO Rust SDK for Amazon S3 Compatible Cloud Storage Slack Sourcegraph Apache V2 License

MinIO Rust SDK is Simple Storage Service (aka S3) client to perform bucket and object operations to any Amazon S3 compatible object storage service.

For a complete list of APIs and examples, please take a look at the MinIO Rust Client API Reference

Examples

Run the examples from the command line with:

cargo run --example <example_name>

file_uploader.rs

file_downloader.rs

object_prompt.rs

License

This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.

Description
MinIO Rust SDK for Amazon S3 Compatible Cloud Storage
Readme Apache-2.0 7.6 MiB
Languages
Rust 99.9%