mirror of
https://github.com/minio/minio-rs.git
synced 2025-12-06 23:36:52 +08:00
Fix missing module import (#80)
This commit is contained in:
parent
de434ed179
commit
220887f171
@ -15,6 +15,12 @@
|
|||||||
|
|
||||||
//! S3 client to perform bucket and object operations
|
//! S3 client to perform bucket and object operations
|
||||||
|
|
||||||
|
use std::collections::HashMap;
|
||||||
|
use std::fs::File;
|
||||||
|
use std::io::prelude::*;
|
||||||
|
use std::path::{Path, PathBuf};
|
||||||
|
use std::sync::Arc;
|
||||||
|
|
||||||
use crate::s3::args::*;
|
use crate::s3::args::*;
|
||||||
use crate::s3::creds::Provider;
|
use crate::s3::creds::Provider;
|
||||||
use crate::s3::error::{Error, ErrorResponse};
|
use crate::s3::error::{Error, ErrorResponse};
|
||||||
@ -37,11 +43,8 @@ use dashmap::DashMap;
|
|||||||
use hyper::http::Method;
|
use hyper::http::Method;
|
||||||
use reqwest::header::HeaderMap;
|
use reqwest::header::HeaderMap;
|
||||||
use reqwest::Body;
|
use reqwest::Body;
|
||||||
use std::collections::HashMap;
|
use tokio::fs;
|
||||||
use std::fs::File;
|
|
||||||
use std::io::prelude::*;
|
|
||||||
use std::path::{Path, PathBuf};
|
|
||||||
use std::sync::Arc;
|
|
||||||
use xmltree::Element;
|
use xmltree::Element;
|
||||||
|
|
||||||
mod get_object;
|
mod get_object;
|
||||||
@ -1518,7 +1521,7 @@ impl Client {
|
|||||||
let path = Path::new(&args.filename);
|
let path = Path::new(&args.filename);
|
||||||
if let Some(parent_dir) = path.parent() {
|
if let Some(parent_dir) = path.parent() {
|
||||||
if !parent_dir.exists() {
|
if !parent_dir.exists() {
|
||||||
fs::create_dir_all(parent_dir)?;
|
fs::create_dir_all(parent_dir).await?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let mut file = match args.overwrite {
|
let mut file = match args.overwrite {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user