From: Vincent Petry Date: Fri, 12 Dec 2014 14:19:36 +0000 (+0100) Subject: Return file info from Node API X-Git-Tag: v8.0.0alpha1~83^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c6be491a89a4eebe15bcb20f6e0b01f23a093761;p=nextcloud-server.git Return file info from Node API --- diff --git a/lib/private/files/node/node.php b/lib/private/files/node/node.php index b80db28e8ec..87d4a4b9156 100644 --- a/lib/private/files/node/node.php +++ b/lib/private/files/node/node.php @@ -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); }