aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Sabre/TrashFolder.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin/lib/Sabre/TrashFolder.php')
-rw-r--r--apps/files_trashbin/lib/Sabre/TrashFolder.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/Sabre/TrashFolder.php b/apps/files_trashbin/lib/Sabre/TrashFolder.php
new file mode 100644
index 00000000000..e1c495bf08e
--- /dev/null
+++ b/apps/files_trashbin/lib/Sabre/TrashFolder.php
@@ -0,0 +1,17 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCA\Files_Trashbin\Sabre;
+
+use OCA\Files_Trashbin\Trashbin;
+
+class TrashFolder extends AbstractTrashFolder {
+ public function getName(): string {
+ return Trashbin::getTrashFilename($this->data->getName(), $this->getDeletionTime());
+ }
+}