Skip to content
Snippets Groups Projects
Commit cf181e88 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Try to setup a user's filesystem if the user hasn't logged in before and is shared a file

parent 2f1e6018
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment