*/
list($storage, $internalPath) = self::resolvePath($path);
if ($storage) {
- $cache = $storage->getCache();
- $scanner = $storage->getScanner();
+ $cache = $storage->getCache($internalPath);
+ $scanner = $storage->getScanner($internalPath);
$scanner->scan($internalPath, Scanner::SCAN_SHALLOW);
$cache->correctFolderSize($internalPath);
}
*/
list($storage, $internalPath) = self::resolvePath($path);
if ($storage) {
- $cache = $storage->getCache();
+ $cache = $storage->getCache($internalPath);
$cache->remove($internalPath);
$cache->correctFolderSize($internalPath);
}
*/
list($storage, $internalPath) = Filesystem::resolvePath($path);
if ($storage) {
- $cache = $storage->getCache();
+ $cache = $storage->getCache($internalPath);
if (!$cache->inCache($internalPath)) {
- $scanner = $storage->getScanner();
+ $scanner = $storage->getScanner($internalPath);
$scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW);
} else {
- $watcher = $storage->getWatcher();
+ $watcher = $storage->getWatcher($internalPath);
$watcher->checkUpdate($internalPath);
}
foreach ($mountPoints as $mountPoint) {
$subStorage = Filesystem::getStorage($mountPoint);
if ($subStorage) {
- $subCache = $subStorage->getCache();
+ $subCache = $subStorage->getCache('');
$rootEntry = $subCache->get('');
$data['size'] += $rootEntry['size'];
}
}
}
- $permissionsCache = $storage->getPermissionsCache();
+ $permissionsCache = $storage->getPermissionsCache($internalPath);
$data['permissions'] = $permissionsCache->get($data['fileid'], \OC_User::getUser());
}
}
*/
list($storage, $internalPath) = Filesystem::resolvePath($path);
if ($storage) {
- $cache = $storage->getCache();
+ $cache = $storage->getCache($internalPath);
if ($cache->getStatus($internalPath) < Cache\Cache::COMPLETE) {
- $scanner = $storage->getScanner();
+ $scanner = $storage->getScanner($internalPath);
$scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW);
} else {
- $watcher = $storage->getWatcher();
+ $watcher = $storage->getWatcher($internalPath);
$watcher->checkUpdate($internalPath);
}
foreach ($mountPoints as $mountPoint) {
$subStorage = Filesystem::getStorage($mountPoint);
if ($subStorage) {
- $subCache = $subStorage->getCache();
+ $subCache = $subStorage->getCache('');
$rootEntry = $subCache->get('');
$relativePath = trim(substr($mountPoint, $dirLength), '/');
$files[$i]['type'] = $file['mimetype'] === 'httpd/unix-directory' ? 'dir' : 'file';
$ids[] = $file['fileid'];
}
- $permissionsCache = $storage->getPermissionsCache();
+ $permissionsCache = $storage->getPermissionsCache($internalPath);
$permissions = $permissionsCache->getMultiple($ids, \OC_User::getUser());
foreach ($files as $i => $file) {
*/
list($storage, $internalPath) = Filesystem::resolvePath($path);
if ($storage) {
- $cache = $storage->getCache();
+ $cache = $storage->getCache($path);
if (!$cache->inCache($internalPath)) {
- $scanner = $storage->getScanner();
+ $scanner = $storage->getScanner($internalPath);
$scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW);
}
$mountPoint = Filesystem::getMountPoint($this->fakeRoot);
$storage = Filesystem::getStorage($mountPoint);
if ($storage) {
- $cache = $storage->getCache();
+ $cache = $storage->getCache('');
$results = $cache->$method($query);
foreach ($results as $result) {
foreach ($mountPoints as $mountPoint) {
$storage = Filesystem::getStorage($mountPoint);
if ($storage) {
- $cache = $storage->getCache();
+ $cache = $storage->getCache('');
$relativeMountPoint = substr($mountPoint, $rootLength);
$results = $cache->$method($query);