function Cleaner::processItem
File
-
core/
modules/ package_manager/ src/ Plugin/ QueueWorker/ Cleaner.php, line 40
Class
- Cleaner
- Processes a queue of defunct stage directories, deleting them.
Namespace
Drupal\package_manager\Plugin\QueueWorkerCode
public function processItem($dir) : void {
assert(is_string($dir));
if (file_exists($dir)) {
$this->fileSystem
->deleteRecursive($dir, function (string $path) : void {
$this->fileSystem
->chmod($path, is_dir($path) ? 0700 : 0600);
});
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.