public function executeCoreFixPerms($arguments, $options) { $path = realpath(sgContext::getInstance()->getRootDir() . '/cache/'); chmod($path, 0777); $files = sgToolkit::getFiles($path); sgToolkit::chmod($files, 0777); }
public static function rmdir($path) { $path = realpath($path); if (!is_dir($path)) { return false; } $files = sgToolkit::getFiles($path); $files[] = $path; self::remove($files); }