]> source.dussan.org Git - nextcloud-server.git/commitdiff
Return file info from Node API
authorVincent Petry <pvince81@owncloud.com>
Fri, 12 Dec 2014 14:19:36 +0000 (15:19 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 15 Dec 2014 11:10:54 +0000 (12:10 +0100)
lib/private/files/node/node.php

index b80db28e8ec7cf6431c59cdca0daa8342faf50e3..87d4a4b91569119fc481ddb7583b4485b8915a5a 100644 (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);
                }