mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Create directory for mount point if it doesn't already exist
This commit is contained in:
parent
deb2f87556
commit
790ae70e32
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue