Xuanwo commented on code in PR #4732:
URL: https://github.com/apache/opendal/pull/4732#discussion_r1639100849
##########
core/src/services/gdrive/core.rs:
##########
@@ -396,6 +396,9 @@ impl PathQuery for GdrivePathQuery {
async fn create_dir(&self, parent_id: &str, name: &str) -> Result<String> {
let url = "https://www.googleapis.com/drive/v3/files";
+ // trim "/" at the end of name
+ let name = name.trim_end_matches("/");
Review Comment:
Only trim name for `create_dir` is not enough, we could push `name` with `/`
in cache at:
https://github.com/apache/opendal/blob/c82dc139e7478ac96a90c49dc8e5326ecc057d75/core/src/raw/path_cache.rs#L183-L192
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]