public function executeCoreFixPerms($arguments, $options) { $path = realpath(sgContext::getInstance()->getRootDir() . '/cache/'); chmod($path, 0777); $files = sgToolkit::getFiles($path); sgToolkit::chmod($files, 0777); }