mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Return file info from Node API
This commit is contained in:
parent
036456fe16
commit
c6be491a89
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue