Skip to content
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

offer 'parents' option: make containing directories if necessary/possible #88

Closed
gojomo opened this issue Aug 18, 2016 · 3 comments
Closed

Comments

@gojomo
Copy link
Contributor

gojomo commented Aug 18, 2016

It's be nice if there were a smart_open(..., parents=True) parameter, which (for local files) would create parent directories, if necessary – much like mkdir --parents.

@tmylk
Copy link
Contributor

tmylk commented Sep 18, 2016

Should it be like this?

@gojomo
Copy link
Contributor Author

gojomo commented Sep 19, 2016

Yes, that seems the right approach to handling the dir-making – of course it'd need to be provided the base-directory for the target file path.

@menshikh-iv
Copy link
Contributor

I close this PR, reason: #169 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants