Skip to content

Commit

Permalink
Merge pull request #218 from nextcloud/fix/38/path-with-groupfolders
Browse files Browse the repository at this point in the history
fix(operation): groupfolder path is user independent
  • Loading branch information
blizzz authored Nov 16, 2023
2 parents 54019e0 + 21e263a commit 9746f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ protected function replacePlaceholderN(Node $node): string {

if (isset($storage) && $storage->instanceOfStorage(GroupFolderStorage::class)) {
// group folders are always located within $DATADIR/__groupfolders/
$absPath = $storage->getLocalFile($node->getPath());
$absPath = $storage->getLocalFile($node->getInternalPath());
$pos = strpos($absPath, '/__groupfolders/');
// if the string cannot be found, the fallback is absolute path
// it should never happen #famousLastWords
Expand Down

0 comments on commit 9746f3c

Please sign in to comment.