Browse Source

set etag and permission fields for trashbin entries

tags/v9.0beta1
Robin Appelman 8 years ago
parent
commit
cb3d3ebf50
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      apps/files_trashbin/lib/helper.php

+ 3
- 0
apps/files_trashbin/lib/helper.php 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;

Loading…
Cancel
Save