[
https://issues.apache.org/jira/browse/ARROW-1901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16283339#comment-16283339
]
ASF GitHub Bot commented on ARROW-1901:
---------------------------------------
xhochy closed pull request #1401: ARROW-1901: [Python] Support recursive mkdir
for DaskFilesystem
URL: https://github.com/apache/arrow/pull/1401
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/python/pyarrow/filesystem.py b/python/pyarrow/filesystem.py
index 926df0e30e..ff78095756 100644
--- a/python/pyarrow/filesystem.py
+++ b/python/pyarrow/filesystem.py
@@ -275,8 +275,11 @@ def exists(self, path):
return self.fs.exists(path)
@implements(FileSystem.mkdir)
- def mkdir(self, path):
- return self.fs.mkdir(path)
+ def mkdir(self, path, create_parents=True):
+ if create_parents:
+ return self.fs.mkdirs(path)
+ else:
+ return self.fs.mkdir(path)
@implements(FileSystem.open)
def open(self, path, mode='rb'):
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> [Python] Support recursive mkdir for DaskFilesystem
> ---------------------------------------------------
>
> Key: ARROW-1901
> URL: https://issues.apache.org/jira/browse/ARROW-1901
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Reporter: Uwe L. Korn
> Assignee: Uwe L. Korn
> Labels: pull-request-available
> Fix For: 0.8.0
>
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)