isWritable() public static method

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
Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 /**
  * 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;
 }
Example #4
0
 /**
  * Do we have write rights to the modules folders?
  *
  * @return bool
  */
 private function isWritable()
 {
     return BackendExtensionsModel::isWritable(FRONTEND_PATH . '/Themes');
 }