Merge pull request #8489 from owncloud/share_updater_ignore_part_files

[sharing] share updater ignore part files
remotes/origin/ldap_group_count
Vincent Petry 12 years ago
commit a8c83f79ef
  1. 6
      apps/files_sharing/lib/helper.php
  2. 6
      apps/files_sharing/lib/updater.php

@ -127,7 +127,11 @@ class Helper {
$ids = array();
while ($path !== '' && $path !== '.' && $path !== '/') {
$info = $ownerView->getFileInfo($path);
$ids[] = $info['fileid'];
if ($info instanceof \OC\Files\FileInfo) {
$ids[] = $info['fileid'];
} else {
\OCP\Util::writeLog('sharing', 'No fileinfo available for: ' . $path, \OCP\Util::WARN);
}
$path = dirname($path);
}

@ -55,6 +55,12 @@ class Shared_Updater {
* @param string $target
*/
static public function correctFolders($target) {
// ignore part files
if (pathinfo($target, PATHINFO_EXTENSION) === 'part') {
return false;
}
// Correct Shared folders of other users shared with
$shares = \OCA\Files_Sharing\Helper::getSharesFromItem($target);

Loading…
Cancel
Save