Skip to content

Commit

Permalink
Add getID function to the simplefile implementation
Browse files Browse the repository at this point in the history
Sometimes it is useful to get the actual fileid

Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer authored and backportbot[bot] committed Mar 17, 2021
1 parent 3c1402c commit 147134f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/private/Files/SimpleFS/SimpleFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,8 @@ public function read() {
public function write() {
return $this->file->fopen('w');
}

public function getId(): int {
return $this->file->getId();
}
}

0 comments on commit 147134f

Please sign in to comment.