summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-06-12 15:25:13 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-06-12 15:25:34 -0400
commit790ae70e321713007863705d4a444edc2e53791e (patch)
tree2d5da259b12e662b4b57671d7bfd69e083727162 /lib
parentdeb2f87556fc850632e52dda42462dedde2304ef (diff)
downloadnextcloud-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.php3
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);
}