summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-21 15:35:12 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-21 15:35:12 +0100
commitdd98e6333f59de05e04a1bd6a887ff1554233e28 (patch)
treecf16f3e9ab19a09e4f8d0cd7700f9d786d940a74 /lib/private
parent3980a7d9c6a20e7c0c9b92342e59e2a7ec443667 (diff)
downloadnextcloud-server-dd98e6333f59de05e04a1bd6a887ff1554233e28.tar.gz
nextcloud-server-dd98e6333f59de05e04a1bd6a887ff1554233e28.zip
Split getFolderContentById
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/files/cache/cache.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php
index dbdc42ecc48..fcc7099bbc9 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -169,6 +169,16 @@ class Cache {
if (is_null($fileId)) {
$fileId = $this->getId($folder);
}
+ return $this->getFolderContentsById($fileId);
+ }
+
+ /**
+ * get the metadata of all files stored in $folder
+ *
+ * @param int $fileId the file id of the folder
+ * @return array
+ */
+ public function getFolderContentsById($fileId) {
if ($fileId > -1) {
$sql = 'SELECT `fileid`, `storage`, `path`, `parent`, `name`, `mimetype`, `mimepart`, `size`, `mtime`,
`storage_mtime`, `encrypted`, `unencrypted_size`, `etag`