Skip to content

Commit

Permalink
fix: Do not fail to get internal path on NonExistingFile
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Aug 28, 2024
1 parent b4d7498 commit 5eea99d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/private/Files/Node/NonExistingFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ public function getId() {
}
}

public function getInternalPath() {
if ($this->fileInfo) {
return parent::getInternalPath();
} else {
return $this->getParent()->getMountPoint()->getInternalPath($this->getPath());
}
}

public function stat() {
throw new NotFoundException();
}
Expand Down

0 comments on commit 5eea99d

Please sign in to comment.