This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch implement-list-metakey
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/implement-list-metakey by this 
push:
     new f31a28b46 Fix build
f31a28b46 is described below

commit f31a28b46d737eb171502440d15ac562b9857864
Author: Xuanwo <[email protected]>
AuthorDate: Mon Aug 7 15:58:11 2023 +0800

    Fix build
    
    Signed-off-by: Xuanwo <[email protected]>
---
 bin/oli/src/commands/cp.rs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bin/oli/src/commands/cp.rs b/bin/oli/src/commands/cp.rs
index 9bb40bad4..5f17f4fa9 100644
--- a/bin/oli/src/commands/cp.rs
+++ b/bin/oli/src/commands/cp.rs
@@ -25,7 +25,6 @@ use clap::ArgAction;
 use clap::ArgMatches;
 use clap::Command;
 use futures::TryStreamExt;
-use opendal::Metakey;
 
 use crate::config::Config;
 
@@ -59,7 +58,7 @@ pub async fn main(args: &ArgMatches) -> Result<()> {
     let dst_root = Path::new(&dst_path);
     let mut ds = src_op.lister_with(&src_path).delimiter("").await?;
     while let Some(de) = ds.try_next().await? {
-        let meta = src_op.metadata(&de, Metakey::Mode).await?;
+        let meta = de.metadata();
         if meta.mode().is_dir() {
             continue;
         }

Reply via email to