Skip to content
Snippets Groups Projects
Commit 790ae70e authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Create directory for mount point if it doesn't already exist

parent deb2f875
Branches
No related tags found
No related merge requests found
......@@ -319,6 +319,9 @@ class OC_Filesystem{
if(substr($mountpoint,-1)!=='/'){
$mountpoint=$mountpoint.'/';
}
if ($mountpoint != '/' && !self::is_dir(basename($mountpoint))) {
self::mkdir(basename($mountpoint));
}
self::$mounts[$mountpoint]=array('class'=>$class,'arguments'=>$arguments);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment