Return file info from Node API

This commit is contained in:
Vincent Petry 2014-12-12 15:19:36 +01:00
parent 036456fe16
commit c6be491a89
1 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,12 @@ class Node implements \OCP\Files\Node, FileInfo {
$this->path = $path;
}
private function getFileInfo() {
/**
* Returns the matching file info
*
* @return \OCP\Files\FileInfo
*/
public function getFileInfo() {
if (!$this->fileInfo) {
$this->fileInfo = $this->view->getFileInfo($this->path);
}