Xuanwo commented on code in PR #3592:
URL:
https://github.com/apache/incubator-opendal/pull/3592#discussion_r1394281409
##########
core/src/services/hdfs/backend.rs:
##########
@@ -155,6 +155,34 @@ pub struct HdfsBackend {
unsafe impl Send for HdfsBackend {}
unsafe impl Sync for HdfsBackend {}
+impl HdfsBackend {
+ fn create_parent_if_need(&self, path: &str) -> Result<()> {
Review Comment:
Please use
```rust
self.client
.create_dir(&parent.to_string_lossy())
.map_err(new_std_io_error)?;
```
like what we do in other methods.
--
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]