adding parentId to file info array
This commit is contained in:
parent
6d373e97c3
commit
971a311fee
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue