don't throw errors if certificate folder doesn't exist
This commit is contained in:
parent
d6456fd1a6
commit
c099545b6d
|
@ -109,10 +109,10 @@ class OC_Mount_Config {
|
||||||
return $personal;
|
return $personal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add directory for mount point to the filesystem
|
* Add directory for mount point to the filesystem
|
||||||
* @param OC_Fileview instance $view
|
* @param OC_Fileview instance $view
|
||||||
* @param string path to mount point
|
* @param string path to mount point
|
||||||
*/
|
*/
|
||||||
private static function addMountPointDirectory($view, $path) {
|
private static function addMountPointDirectory($view, $path) {
|
||||||
$dir = '';
|
$dir = '';
|
||||||
|
@ -288,6 +288,9 @@ class OC_Mount_Config {
|
||||||
if (!is_dir($path)) mkdir($path);
|
if (!is_dir($path)) mkdir($path);
|
||||||
$result = array();
|
$result = array();
|
||||||
$handle = opendir($path);
|
$handle = opendir($path);
|
||||||
|
if (!$handle) {
|
||||||
|
return array();
|
||||||
|
}
|
||||||
while (false !== ($file = readdir($handle))) {
|
while (false !== ($file = readdir($handle))) {
|
||||||
if($file != '.' && $file != '..') $result[] = $file;
|
if($file != '.' && $file != '..') $result[] = $file;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue