Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
3e57e76c
Commit
3e57e76c
authored
12 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
fix creating the shared folder when the user home folder is not in the root mount
parent
03f66c63
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/files_sharing/lib_share.php
+3
-6
3 additions, 6 deletions
apps/files_sharing/lib_share.php
with
3 additions
and
6 deletions
apps/files_sharing/lib_share.php
+
3
−
6
View file @
3e57e76c
...
@@ -99,12 +99,9 @@ class OC_Share {
...
@@ -99,12 +99,9 @@ class OC_Share {
}
}
$query
->
execute
(
array
(
$uid_owner
,
$uid
,
$source
,
$target
,
$permissions
));
$query
->
execute
(
array
(
$uid_owner
,
$uid
,
$source
,
$target
,
$permissions
));
// Emit post_write hook to invoke a file cache rescan
// Emit post_write hook to invoke a file cache rescan
$storage
=
OC_Filesystem
::
getStorage
(
$sharedFolder
);
$rootView
=
new
OC_FilesystemView
(
'/'
);
if
(
!
$storage
->
is_dir
(
$sharedFolder
))
{
if
(
!
$rootView
->
is_dir
(
$sharedFolder
))
{
$storage
->
mkdir
(
$sharedFolder
);
$rootView
->
mkdir
(
$sharedFolder
);
OCP\Util
::
emitHook
(
'OC_Filesystem'
,
'post_write'
,
array
(
'path'
=>
$sharedFolder
));
}
else
{
OCP\Util
::
emitHook
(
'OC_Filesystem'
,
'post_write'
,
array
(
'path'
=>
$target
));
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment