diff options
author | Robin Appelman <robin@icewind.nl> | 2018-10-29 15:23:33 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-10-29 15:24:02 +0100 |
commit | e5c3e4b76fac1c4a1235781229486f53ffcb93c1 (patch) | |
tree | b0fa6702bc14c23af090277d489dd75493db2803 /apps/files_trashbin | |
parent | 4a642fc0048c03a24aa199ccc9df23d547f69aa2 (diff) | |
download | nextcloud-server-e5c3e4b76fac1c4a1235781229486f53ffcb93c1.tar.gz nextcloud-server-e5c3e4b76fac1c4a1235781229486f53ffcb93c1.zip |
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 <robin@icewind.nl>
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/lib/Trash/TrashItem.php | 4 |
1 files changed, 4 insertions, 0 deletions
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(); + } } |