diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-06-12 15:25:13 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-06-12 15:25:34 -0400 |
commit | 790ae70e321713007863705d4a444edc2e53791e (patch) | |
tree | 2d5da259b12e662b4b57671d7bfd69e083727162 /lib | |
parent | deb2f87556fc850632e52dda42462dedde2304ef (diff) | |
download | nextcloud-server-790ae70e321713007863705d4a444edc2e53791e.tar.gz nextcloud-server-790ae70e321713007863705d4a444edc2e53791e.zip |
Create directory for mount point if it doesn't already exist
Diffstat (limited to 'lib')
-rw-r--r-- | lib/filesystem.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php index 454bb1aa81a..ccbb4319757 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -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); } |