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

fix: check whether or not we created destination directory #81

Merged
merged 2 commits into from Sep 17, 2020

Conversation

chingor13
Copy link
Collaborator

File#mkdirs() will already throw security errors if it fails. We don't want to fail here as File.#mkdirs() will return false if the directory already exists - thus we should only log this case if the later file write fails.

Fixes #47

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 17, 2020
@chingor13 chingor13 requested a review from a team September 17, 2020 19:18
@chingor13 chingor13 added the automerge Merge the pull request once unit tests and other checks pass. label Sep 17, 2020
@gcf-merge-on-green gcf-merge-on-green bot merged commit 4bf31df into master Sep 17, 2020
@gcf-merge-on-green gcf-merge-on-green bot deleted the check-mkdir branch September 17, 2020 19:52
gcf-merge-on-green bot pushed a commit that referenced this pull request Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge the pull request once unit tests and other checks pass. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

We don't check return value of mkdirs
2 participants