set etag and permission fields for trashbin entries

This commit is contained in:
Robin Appelman 2016-01-08 13:07:23 +01:00
parent 074a7fd475
commit cb3d3ebf50
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,7 @@
namespace OCA\Files_Trashbin;
use OC\Files\FileInfo;
use OCP\Constants;
class Helper
{
@ -91,6 +92,8 @@ class Helper
'type' => $view->is_dir($dir . '/' . $entryName) ? 'dir' : 'file',
'directory' => ($dir === '/') ? '' : $dir,
'size' => $size,
'etag' => '',
'permissions' => Constants::PERMISSION_ALL - Constants::PERMISSION_SHARE
);
if ($originalPath) {
$i['extraData'] = $originalPath.'/'.$id;