Young-Flash commented on code in PR #3234:
URL:
https://github.com/apache/incubator-opendal/pull/3234#discussion_r1349493985
##########
core/src/services/gdrive/core.rs:
##########
@@ -399,15 +411,9 @@ impl GdriveCore {
let url = format!("https://www.googleapis.com/drive/v3/files/{}",
file_id);
- let source_abs_path = build_abs_path(&self.root, source);
- let mut source_parent: Vec<&str> = source_abs_path
- .split('/')
- .filter(|&x| !x.is_empty())
- .collect();
+ let mut source_parent: Vec<&str> = source.split('/').filter(|&x|
!x.is_empty()).collect();
Review Comment:
maybe the missing `build_abs_path(&self.root, source)` cause the `unwrap()`
on a `None` value in line 426
--
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]