diff --git a/integrations/unftp-sbe/src/lib.rs b/integrations/unftp-sbe/src/lib.rs index 4f99195461df..415c5bc5e76a 100644 --- a/integrations/unftp-sbe/src/lib.rs +++ b/integrations/unftp-sbe/src/lib.rs @@ -222,10 +222,11 @@ impl StorageBackend for OpendalStorage { } async fn mkd + Send + Debug>(&self, _: &User, path: P) -> storage::Result<()> { - self.op - .create_dir(convert_path(path.as_ref())?) - .await - .map_err(convert_err) + let mut path_str = convert_path(path.as_ref())?.to_string(); + if !path_str.ends_with('/') { + path_str.push('/'); + } + self.op.create_dir(&path_str).await.map_err(convert_err) } async fn rename + Send + Debug>(