return $personal;
}
- /**\r
- * Add directory for mount point to the filesystem\r
- * @param OC_Fileview instance $view\r
- * @param string path to mount point\r
+ /**
+ * Add directory for mount point to the filesystem
+ * @param OC_Fileview instance $view
+ * @param string path to mount point
*/
private static function addMountPointDirectory($view, $path) {
$dir = '';
if (!is_dir($path)) mkdir($path);
$result = array();
$handle = opendir($path);
+ if (!$handle) {
+ return array();
+ }
while (false !== ($file = readdir($handle))) {
if($file != '.' && $file != '..') $result[] = $file;
}