AlenkaF commented on code in PR #45998:
URL: https://github.com/apache/arrow/pull/45998#discussion_r3374356693


##########
cpp/src/arrow/filesystem/hdfs.cc:
##########
@@ -186,24 +292,102 @@ class HadoopFileSystem::Impl {
                                "': parent is not a directory");
       }
     }
-    RETURN_NOT_OK(client_->MakeDirectory(path));
+    RETURN_NOT_OK(MakeDirectory(path));
+    return Status::OK();
+  }
+
+  Status MakeDirectory(const std::string& path) {
+    if (IsDirectory(path)) {
+      return Status::OK();
+    }
+    RETURN_NOT_OK(MakeDirectory(path));
+    return Status::OK();
+  }

Review Comment:
   Nice find! 👏 



-- 
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]

Reply via email to