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 intermediate directories before writing to a file #451

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JustusvonBrandt
Copy link

This pull request makes sure, that before a file is written to the disk, the folders in the path it should be written to exists. All the needed intermediate directories are created, so that the data can be written to the file without failing due to a non existing directory.

Some already mentioned in #371 and #245, that after the removeAll() method of a cache is called, the folders are deleted, but not recreated directly. So the writes after calling removeAll() are failing with an error.

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.

None yet

1 participant