Skip to content

Instantly share code, notes, and snippets.

@thomscode
Created September 26, 2017 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomscode/9c0a36de2afb4d816f59ab3a81a6b582 to your computer and use it in GitHub Desktop.
Save thomscode/9c0a36de2afb4d816f59ab3a81a6b582 to your computer and use it in GitHub Desktop.
Drupal-Composer/Drupal-Project Remove Files Folder check
diff --git a/scripts/composer/ScriptHandler.php b/scripts/composer/ScriptHandler.php
index a75e4d3..b7f4d09 100644
--- a/scripts/composer/ScriptHandler.php
+++ b/scripts/composer/ScriptHandler.php
@@ -50,14 +50,6 @@ class ScriptHandler {
$fs->chmod($drupalRoot . '/sites/default/settings.php', 0666);
$event->getIO()->write("Create a sites/default/settings.php file with chmod 0666");
}
-
- // Create the files directory with chmod 0777
- if (!$fs->exists($drupalRoot . '/sites/default/files')) {
- $oldmask = umask(0);
- $fs->mkdir($drupalRoot . '/sites/default/files', 0777);
- umask($oldmask);
- $event->getIO()->write("Create a sites/default/files directory with chmod 0777");
- }
}
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment