mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 10:19:45 -05:00
Try to setup a user's filesystem if the user hasn't logged in before and is shared a file
This commit is contained in:
parent
2f1e601809
commit
cf181e88bb
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue