Return file info from Node API
This commit is contained in:
parent
036456fe16
commit
c6be491a89
|
@ -43,7 +43,12 @@ class Node implements \OCP\Files\Node, FileInfo {
|
||||||
$this->path = $path;
|
$this->path = $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getFileInfo() {
|
/**
|
||||||
|
* Returns the matching file info
|
||||||
|
*
|
||||||
|
* @return \OCP\Files\FileInfo
|
||||||
|
*/
|
||||||
|
public function getFileInfo() {
|
||||||
if (!$this->fileInfo) {
|
if (!$this->fileInfo) {
|
||||||
$this->fileInfo = $this->view->getFileInfo($this->path);
|
$this->fileInfo = $this->view->getFileInfo($this->path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue