From: Michael Gapczynski Date: Thu, 17 May 2012 13:24:54 +0000 (-0400) Subject: Try to setup a user's filesystem if the user hasn't logged in before and is shared... X-Git-Tag: v4.0.0RC2~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cf181e88bb984f728c77ad01dcbcf87f2cc4aa7a;p=nextcloud-server.git Try to setup a user's filesystem if the user hasn't logged in before and is shared a file --- diff --git a/apps/files_sharing/lib_share.php b/apps/files_sharing/lib_share.php index 9e43fef7696..83f9b6a7545 100644 --- a/apps/files_sharing/lib_share.php +++ b/apps/files_sharing/lib_share.php @@ -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);