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

Create media directory if it doesn't exist #6

Merged
merged 1 commit into from
Nov 26, 2021

Conversation

Mathspy
Copy link
Owner

@Mathspy Mathspy commented Nov 26, 2021

The decision to use create_dir instead of create_dir_all was a
conscience one. I don't think we should be creating the output dir
because that could cause a person to create incorrect directories by
mistake that they didn't intend to i.e using --output=/abc instead of
the intended --output=abc
This is the same behavior curl takes with its --output-dir option.

The decision to use `create_dir` instead of `create_dir_all` was a
conscience one. I don't think we should be creating the output dir
because that could cause a person to create incorrect directories by
mistake that they didn't intend to i.e using --output=/abc instead of
the intended --output=abc
This is the same behavior curl takes with its --output-dir option.
@Mathspy Mathspy merged commit dd7c9bc into main Nov 26, 2021
@Mathspy Mathspy deleted the create-media-if-no-exist branch November 26, 2021 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant