From: Robin Appelman Date: Sat, 16 Apr 2011 18:27:08 +0000 (+0200) Subject: only check for permissions for folders that exists X-Git-Tag: v3.0~267^2~558^2~134^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bf45dcb959a4afbfcfb158dea55acf3804c49ea9;p=nextcloud-server.git only check for permissions for folders that exists --- diff --git a/lib/base.php b/lib/base.php index 7e862b978b1..05ff4040b9d 100644 --- a/lib/base.php +++ b/lib/base.php @@ -292,7 +292,7 @@ class OC_UTIL { }else{ //TODO: premisions checks for windows hosts } - if(!is_writable($CONFIG_DATADIRECTORY_ROOT)){ + if(is_dir($CONFIG_DATADIRECTORY_ROOT) and !is_writable($CONFIG_DATADIRECTORY_ROOT)){ $errors[]=array('error'=>'Data directory ('.$CONFIG_DATADIRECTORY_ROOT.') not writable by ownCloud
','hint'=>$permissionsHint); }