-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bulk_mkdirs #1592
base: master
Are you sure you want to change the base?
Add bulk_mkdirs #1592
Conversation
@@ -306,6 +306,9 @@ def makedirs(self, path, exist_ok=False): | |||
""" | |||
pass # not necessary to implement, may not have directories | |||
|
|||
def bulk_makedirs(self, path, **kw): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need a special function here instead of modifying the makedirs function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had imagined it like cp/cp_file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't we just override makedirs to no check if the dirrectory exists for object stores since we directories aren't really a concept there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_makedirs is overidden by implementations already, so every implementation would have to make the list-of-paths check or do some sort of super()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still confused is this suppose to overridden by the implementation? Are there are implementations that override it currently?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No there are none, but s3fs would be the first, since we don't want to check the existence of every directory, only the root bucket, or try to make the bucket multiple times.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can think of a simpler way to do it, happy to hear!
No description provided.