diff --git a/src/minio.rs b/src/minio.rs index aca6c70..6a896da 100644 --- a/src/minio.rs +++ b/src/minio.rs @@ -316,7 +316,7 @@ impl MinioService { bucket_name: &str, access: bool, ) -> anyhow::Result<()> { - let target = self.absolute_bucket_name(bucket_name); + let target = format!("{}/*", self.absolute_bucket_name(bucket_name)); let res = self .exec_mc_cmd::(&[ @@ -339,7 +339,7 @@ impl MinioService { /// Get current bucket anonymous access status pub async fn bucket_get_anonymous_access(&self, bucket_name: &str) -> anyhow::Result { - let bucket_name = self.absolute_bucket_name(bucket_name); + let bucket_name = format!("{}/*", self.absolute_bucket_name(bucket_name)); Ok(self .exec_mc_cmd::(&["anonymous", "get", bucket_name.as_str()]) .await?