summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-03-08 14:59:36 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-03-08 14:59:36 +0100
commitcc2beee872fe17b6cc1769423920c73a01986f09 (patch)
tree263489df79da9ae636d446cea70671f89e5fb328
parent2ddf3c9df0f176ea7c90e2fb82fd66048766f94b (diff)
downloadnextcloud-server-cc2beee872fe17b6cc1769423920c73a01986f09.tar.gz
nextcloud-server-cc2beee872fe17b6cc1769423920c73a01986f09.zip
Add getID function to the simplefile implementation
Sometimes it is useful to get the actual fileid Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r--lib/private/Files/SimpleFS/SimpleFile.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/SimpleFS/SimpleFile.php b/lib/private/Files/SimpleFS/SimpleFile.php
index 108f53ee9c7..0d3cbc7b743 100644
--- a/lib/private/Files/SimpleFS/SimpleFile.php
+++ b/lib/private/Files/SimpleFS/SimpleFile.php
@@ -180,4 +180,8 @@ class SimpleFile implements ISimpleFile {
public function write() {
return $this->file->fopen('w');
}
+
+ public function getId(): int {
+ return $this->file->getId();
+ }
}