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 on restore if needed - Fixes [SC-25950] #15169

Merged

Conversation

uberbrady
Copy link
Collaborator

Most of the time, the appropriate subdirectories in the storage directory will already exist. But under some circumstances, they might not - and then the restore tool won't be able to restore files to those subdirectories.

This just creates those subdirectories if they don't already exist. I used the same permissions mask that Laravel uses internally.

Copy link

what-the-diff bot commented Jul 25, 2024

PR Summary

  • Enhancement in File Writing Process
    This update introduces a new checking mechanism which ensures a directory is available before attempting to write a file to it. If the target directory doesn't exist, the system will now create it automatically. This will help in ensuring smooth file writing operations and prevent errors due to non-existent directories.

@snipe snipe merged commit f77d300 into snipe:develop Jul 25, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants