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
コード例 #1
0
ファイル: UploadTheme.php プロジェクト: bwgraves/forkcms
 /**
  * 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;
 }
コード例 #2
0
ファイル: UploadModule.php プロジェクト: forkcms/forkcms
 /**
  * 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);
 }
コード例 #3
0
ファイル: UploadModule.php プロジェクト: newaltcoin/forkcms
 /**
  * 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;
 }
コード例 #4
0
ファイル: UploadTheme.php プロジェクト: forkcms/forkcms
 /**
  * Do we have write rights to the modules folders?
  *
  * @return bool
  */
 private function isWritable()
 {
     return BackendExtensionsModel::isWritable(FRONTEND_PATH . '/Themes');
 }