Skip to content

Commit a560685

Browse files
committed
wip: fix path usages within node class depending on the view
Signed-off-by: Julius Härtl <[email protected]>
1 parent d484d5b commit a560685

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/private/Files/Node/Node.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,4 +473,9 @@ public function getCreationTime(): int {
473473
public function getUploadTime(): int {
474474
return $this->getFileInfo()->getUploadTime();
475475
}
476+
477+
protected function getRelativePathToView(): ?string {
478+
// TODO maybe change all usages of path with view in folder/file/node classes to this method
479+
return $this->view->getRelativePath($this->path);
480+
}
476481
}

0 commit comments

Comments
 (0)