summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Sabre/TrashFile.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-04-17 22:22:41 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-25 20:25:10 +0200
commitd5937e0fd6098b90cdfc6ea826d2ba7f1f37ad97 (patch)
tree772e579897b0d1dc7267a8020350c03b4a0af107 /apps/files_trashbin/lib/Sabre/TrashFile.php
parentcb617c4949f9b8570f65bf972c29d4cd78bc9b6e (diff)
downloadnextcloud-server-d5937e0fd6098b90cdfc6ea826d2ba7f1f37ad97.tar.gz
nextcloud-server-d5937e0fd6098b90cdfc6ea826d2ba7f1f37ad97.zip
Add propfind properties to trashbin
* get original filename (without the weird timestamp) * get original location Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_trashbin/lib/Sabre/TrashFile.php')
-rw-r--r--apps/files_trashbin/lib/Sabre/TrashFile.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/Sabre/TrashFile.php b/apps/files_trashbin/lib/Sabre/TrashFile.php
index 3e801a27579..215dcec5770 100644
--- a/apps/files_trashbin/lib/Sabre/TrashFile.php
+++ b/apps/files_trashbin/lib/Sabre/TrashFile.php
@@ -78,4 +78,13 @@ class TrashFile implements IFile, ITrash {
return \OCA\Files_Trashbin\Trashbin::restore($this->getName(), $this->data->getName(), $this->getLastModified());
}
+ public function getFilename(): string {
+ return $this->data->getName();
+ }
+
+ public function getOriginalLocation(): string {
+ return $this->data['extraData'];
+ }
+
+
}