The default is_writable function has problems due to Windows ACLs "bug"
public static isWritable ( string $path ) : boolean | ||
$path | string | The path to check. |
return | boolean |
/** * Do we have write rights to the modules folders? * * @return bool */ private function isWritable() { // check if writable if (!BackendExtensionsModel::isWritable(FRONTEND_PATH . '/Themes')) { return false; } // everything is writable return true; }
/** * Do we have write rights to the modules folders? * * @return bool */ private function isWritable() { if (!BackendExtensionsModel::isWritable(FRONTEND_MODULES_PATH)) { return false; } return BackendExtensionsModel::isWritable(BACKEND_MODULES_PATH); }
/** * Do we have write rights to the modules folders? * * @return bool */ private function isWritable() { // check if writable if (!BackendExtensionsModel::isWritable(FRONTEND_MODULES_PATH)) { return false; } if (!BackendExtensionsModel::isWritable(BACKEND_MODULES_PATH)) { return false; } // everything is writeable return true; }
/** * Do we have write rights to the modules folders? * * @return bool */ private function isWritable() { return BackendExtensionsModel::isWritable(FRONTEND_PATH . '/Themes'); }