summaryrefslogtreecommitdiffstats
path: root/lib/files/cache/scanner.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-01-07 10:28:37 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-01-07 10:28:37 -0500
commit6801f82d090195573972e15d3cda96b0fde24460 (patch)
treec441d8ca8f284fd0b0f2d16c822f6256274eeffc /lib/files/cache/scanner.php
parentd0a50fae8317e4b4871027ee4b2940ab5443961f (diff)
parentd0377b1951a156e218ca0200340e2bcfb51ac0c8 (diff)
downloadnextcloud-server-6801f82d090195573972e15d3cda96b0fde24460.tar.gz
nextcloud-server-6801f82d090195573972e15d3cda96b0fde24460.zip
Merge branch 'filesystem' into filesystem-etags
Conflicts: lib/files/cache/cache.php
Diffstat (limited to 'lib/files/cache/scanner.php')
-rw-r--r--lib/files/cache/scanner.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php
index e7bfb1898e1..b62a093cec7 100644
--- a/lib/files/cache/scanner.php
+++ b/lib/files/cache/scanner.php
@@ -24,11 +24,6 @@ class Scanner {
*/
private $cache;
- /**
- * @var \OC\Files\Cache\Permissions $permissionsCache
- */
- private $permissionsCache;
-
const SCAN_RECURSIVE = true;
const SCAN_SHALLOW = false;
@@ -36,7 +31,6 @@ class Scanner {
$this->storage = $storage;
$this->storageId = $this->storage->getId();
$this->cache = $storage->getCache();
- $this->permissionsCache = $storage->getPermissionsCache();
}
/**
@@ -53,10 +47,8 @@ class Scanner {
$data['mtime'] = $this->storage->filemtime($path);
if ($data['mimetype'] == 'httpd/unix-directory') {
$data['size'] = -1; //unknown
- $data['permissions'] = $this->storage->getPermissions($path . '/');
} else {
$data['size'] = $this->storage->filesize($path);
- $data['permissions'] = $this->storage->getPermissions($path);
}
$data['etag'] = $this->storage->getETag($path);
return $data;
@@ -82,7 +74,6 @@ class Scanner {
}
}
$id = $this->cache->put($file, $data);
- $this->permissionsCache->set($id, \OC_User::getUser(), $data['permissions']);
}
return $data;
}