mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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>
This commit is contained in:
parent
2ddf3c9df0
commit
cc2beee872
1 changed files with 4 additions and 0 deletions
|
|
@ -180,4 +180,8 @@ class SimpleFile implements ISimpleFile {
|
|||
public function write() {
|
||||
return $this->file->fopen('w');
|
||||
}
|
||||
|
||||
public function getId(): int {
|
||||
return $this->file->getId();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue