Ensures files and directories are deletable.
File
- drupal/core/lib/Drupal/Component/PhpStorage/FileStorage.php, line 96
- Definition of Drupal\Component\PhpStorage\FileStorage.
Class
- FileStorage
- Stores the code as regular PHP files.
Namespace
Drupal\Component\PhpStorage
Code
public static function filePreDeleteCallback($path) {
if (file_exists($path)) {
chmod($path, 0700);
}
}