]> source.dussan.org Git - nextcloud-server.git/commitdiff
Try to setup a user's filesystem if the user hasn't logged in before and is shared...
authorMichael Gapczynski <GapczynskiM@gmail.com>
Thu, 17 May 2012 13:24:54 +0000 (09:24 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Thu, 17 May 2012 13:24:54 +0000 (09:24 -0400)
apps/files_sharing/lib_share.php

index 9e43fef7696822d6902b4ccd2586b0dd818bb1fc..83f9b6a7545b543c37519968c8b8be1ef2acef20 100644 (file)
@@ -111,6 +111,11 @@ class OC_Share {
                                // Update mtime of shared folder to invoke a file cache rescan
                                $rootView=new OC_FilesystemView('/');
                                if (!$rootView->is_dir($sharedFolder)) {
+                                       if (!$rootView->is_dir('/'.$uid.'/files')) {
+                                               OC_Util::tearDownFS();
+                                               OC_Util::setupFS($uid);
+                                               OC_Util::tearDownFS();
+                                       }
                                        $rootView->mkdir($sharedFolder);
                                }
                                $rootView->touch($sharedFolder);