<?php exec(string $command, array &$output = null, int &$result_code = null): string|false
<?php chmod($filename, $mode); if ($this->isLinuxRoot()) { exec(sprintf('chattr +i %s', $filename)); } $params = [
<?php private function cleanupReadOnlyFile(string $filename): void { if ($this->isLinuxRoot()) { exec(sprintf('chattr -i %s', $filename)); } chmod($filename, 0200); // make the file writable again, so it can be removed on Windows