diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-20 14:25:39 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-20 14:25:39 +0200 |
commit | 92b60e36de8d89e8ea7c4781a8c5d5fa4371b7c3 (patch) | |
tree | 4b8cd51bbac054669d76a0ee53da3fa2773aadae /lib/private/files/cache | |
parent | 3959f8ac4e979f9c1fcaef3d18deb0c7c858f560 (diff) | |
download | nextcloud-server-92b60e36de8d89e8ea7c4781a8c5d5fa4371b7c3.tar.gz nextcloud-server-92b60e36de8d89e8ea7c4781a8c5d5fa4371b7c3.zip |
Introduce Storage::getData() to allow storage implementations more control over the data array
Diffstat (limited to 'lib/private/files/cache')
-rw-r--r-- | lib/private/files/cache/scanner.php | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php index 0878b6c60a0..c1ba7c01461 100644 --- a/lib/private/files/cache/scanner.php +++ b/lib/private/files/cache/scanner.php @@ -109,17 +109,10 @@ class Scanner extends BasicEmitter { \OCP\Util::writeLog('OC\Files\Cache\Scanner', "!!! Path '$path' is not accessible or present !!!", \OCP\Util::DEBUG); return null; } - $data = array(); - $data['mimetype'] = $this->storage->getMimeType($path); - $data['mtime'] = $this->storage->filemtime($path); - if ($data['mimetype'] == 'httpd/unix-directory') { - $data['size'] = -1; //unknown - } else { - $data['size'] = $this->storage->filesize($path); - } - $data['etag'] = $this->storage->getETag($path); - $data['storage_mtime'] = $data['mtime']; + + $data = $this->storage->getData($path); $data['permissions'] = $permissions; + return $data; } |