From e5c3e4b76fac1c4a1235781229486f53ffcb93c1 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 29 Oct 2018 15:23:33 +0100 Subject: Add getExtension() to FileInfo this is a fairly common operation so it makes sense to prevent having to repeatedly implement it. Signed-off-by: Robin Appelman --- apps/files_trashbin/lib/Trash/TrashItem.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/files_trashbin/lib/Trash') diff --git a/apps/files_trashbin/lib/Trash/TrashItem.php b/apps/files_trashbin/lib/Trash/TrashItem.php index cd7079bcf26..40ceb59abaa 100644 --- a/apps/files_trashbin/lib/Trash/TrashItem.php +++ b/apps/files_trashbin/lib/Trash/TrashItem.php @@ -169,4 +169,8 @@ class TrashItem implements ITrashItem { public function getChecksum() { return $this->fileInfo->getChecksum(); } + + public function getExtension(): string { + return $this->fileInfo->getExtension(); + } } -- cgit v1.2.3