Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/WorkspaceController.php3
-rw-r--r--lib/Service/WorkspaceService.php4
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/Controller/WorkspaceController.php b/lib/Controller/WorkspaceController.php
index 8e9f43685..37406925d 100644
--- a/lib/Controller/WorkspaceController.php
+++ b/lib/Controller/WorkspaceController.php
@@ -123,7 +123,8 @@ class WorkspaceController extends OCSController {
'file' => [
'id' => $file->getId(),
'mimetype' => $file->getMimetype(),
- 'name' => $file->getName()
+ 'name' => $file->getName(),
+ 'path' => $file->getPath()
],
'folder' => [
'permissions' => $folder->getPermissions()
diff --git a/lib/Service/WorkspaceService.php b/lib/Service/WorkspaceService.php
index ae5d57f60..5e4ff75e7 100644
--- a/lib/Service/WorkspaceService.php
+++ b/lib/Service/WorkspaceService.php
@@ -23,6 +23,10 @@ class WorkspaceService {
$this->l10n = $l10n;
}
+ /**
+ * @param Folder $folder
+ * @return \OCP\Files\File
+ */
public function getFile(Folder $folder) {
foreach ($this->getSupportedFilenames() as $filename) {
if ($folder->nodeExists($filename)) {