summaryrefslogtreecommitdiffstats
path: root/lib/private/files/utils
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-12-10 11:04:17 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-12-10 11:04:17 +0100
commit0f17486c1d6d974e25ea75597bd2ca6f50e5e538 (patch)
treebe8185ab017f4f456baa0e04c99684923b38b3b0 /lib/private/files/utils
parent3cdaa4094fe7a8fa6db4885dd9a426053e845a53 (diff)
downloadnextcloud-server-0f17486c1d6d974e25ea75597bd2ca6f50e5e538.tar.gz
nextcloud-server-0f17486c1d6d974e25ea75597bd2ca6f50e5e538.zip
make path absolute
Diffstat (limited to 'lib/private/files/utils')
-rw-r--r--lib/private/files/utils/scanner.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/files/utils/scanner.php b/lib/private/files/utils/scanner.php
index a0b06328579..7625e52e015 100644
--- a/lib/private/files/utils/scanner.php
+++ b/lib/private/files/utils/scanner.php
@@ -127,11 +127,12 @@ class Scanner extends PublicEmitter {
) {
throw new ForbiddenException();
}
+ $relativePath = $mount->getInternalPath($dir);
$scanner = $storage->getScanner();
$scanner->setUseTransactions(false);
$this->attachListener($mount);
$this->db->beginTransaction();
- $scanner->scan($dir, \OC\Files\Cache\Scanner::SCAN_RECURSIVE, \OC\Files\Cache\Scanner::REUSE_ETAG | \OC\Files\Cache\Scanner::REUSE_SIZE);
+ $scanner->scan($relativePath, \OC\Files\Cache\Scanner::SCAN_RECURSIVE, \OC\Files\Cache\Scanner::REUSE_ETAG | \OC\Files\Cache\Scanner::REUSE_SIZE);
$this->db->commit();
}
$this->propagator->propagateChanges(time());