diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-17 09:24:54 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-17 09:24:54 -0400 |
commit | cf181e88bb984f728c77ad01dcbcf87f2cc4aa7a (patch) | |
tree | cf34d6ae4e8422fe873b4ce50e58cbb297662873 /apps/files_sharing/lib_share.php | |
parent | 2f1e60180962d77752ed2b630f4945ee676b2125 (diff) | |
download | nextcloud-server-cf181e88bb984f728c77ad01dcbcf87f2cc4aa7a.tar.gz nextcloud-server-cf181e88bb984f728c77ad01dcbcf87f2cc4aa7a.zip |
Try to setup a user's filesystem if the user hasn't logged in before and is shared a file
Diffstat (limited to 'apps/files_sharing/lib_share.php')
-rw-r--r-- | apps/files_sharing/lib_share.php | 5 |
1 files changed, 5 insertions, 0 deletions
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); |