aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-07 23:03:19 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-04-07 23:03:19 +0200
commit971a311feec6c4c2de905bdbbe71c2cf60296cb2 (patch)
tree150d3ea2231a12461c60708715cbe4720134c39d /apps/files/lib
parent6d373e97c32ec51bd649eeafdfcc3596067776f8 (diff)
downloadnextcloud-server-971a311feec6c4c2de905bdbbe71c2cf60296cb2.tar.gz
nextcloud-server-971a311feec6c4c2de905bdbbe71c2cf60296cb2.zip
adding parentId to file info array
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/helper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php
index b765fdaf3e3..f9515d67157 100644
--- a/apps/files/lib/helper.php
+++ b/apps/files/lib/helper.php
@@ -73,13 +73,14 @@ class Helper
/**
* Formats the file info to be returned as JSON to the client.
*
- * @param \OCP\Files\FileInfo file info
+ * @param \OCP\Files\FileInfo $i
* @return array formatted file info
*/
public static function formatFileInfo($i) {
$entry = array();
$entry['id'] = $i['fileid'];
+ $entry['parentId'] = $i['parent'];
$entry['date'] = \OCP\Util::formatDate($i['mtime']);
$entry['mtime'] = $i['mtime'] * 1000;
// only pick out the needed attributes