Merge pull request #8890 from open-sausages/pulls/4/get-installer-to-self-create-assets-folder

BUG Update installer to create the assets folder if its missing
This commit is contained in:
Ingo Schommer 2019-04-05 14:41:01 +13:00 committed by GitHub
commit afb3c825c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,6 +283,10 @@ class InstallRequirements
array("File permissions", "Is the assets/ directory writeable?", null),
true
);
// Make sure asset path actually exists
if (!file_exists(ASSETS_PATH)) {
mkdir(ASSETS_PATH);
}
// Ensure all assets files are writable
$innerIterator = new RecursiveDirectoryIterator(ASSETS_PATH, RecursiveDirectoryIterator::SKIP_DOTS);