From 147134fc31f604f0e20429e6ead1e18e618f2d66 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 8 Mar 2021 14:59:36 +0100 Subject: [PATCH] Add getID function to the simplefile implementation Sometimes it is useful to get the actual fileid Signed-off-by: Roeland Jago Douma --- lib/private/Files/SimpleFS/SimpleFile.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/private/Files/SimpleFS/SimpleFile.php b/lib/private/Files/SimpleFS/SimpleFile.php index 108f53ee9c749..0d3cbc7b74318 100644 --- a/lib/private/Files/SimpleFS/SimpleFile.php +++ b/lib/private/Files/SimpleFS/SimpleFile.php @@ -180,4 +180,8 @@ public function read() { public function write() { return $this->file->fopen('w'); } + + public function getId(): int { + return $this->file->getId(); + } }