aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/SimpleFS/SimpleFolder.php
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-10-14 11:19:00 +0200
committerVincent Petry <vincent@nextcloud.com>2022-10-14 16:18:37 +0200
commite4ff84d468acf3c0e2d497412b7192651bbd4e23 (patch)
tree66c789af19efbd536d3ff7a6035f087cca9639ed /lib/private/Files/SimpleFS/SimpleFolder.php
parent95d45c20580683a7ed332b2e313ee42b8b728bc7 (diff)
downloadnextcloud-server-e4ff84d468acf3c0e2d497412b7192651bbd4e23.tar.gz
nextcloud-server-e4ff84d468acf3c0e2d497412b7192651bbd4e23.zip
Scope the appdata theming storage for global and users
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/Files/SimpleFS/SimpleFolder.php')
-rw-r--r--lib/private/Files/SimpleFS/SimpleFolder.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/private/Files/SimpleFS/SimpleFolder.php b/lib/private/Files/SimpleFS/SimpleFolder.php
index 263c25a8873..1f267119871 100644
--- a/lib/private/Files/SimpleFS/SimpleFolder.php
+++ b/lib/private/Files/SimpleFS/SimpleFolder.php
@@ -91,4 +91,19 @@ class SimpleFolder implements ISimpleFolder {
return new SimpleFile($file);
}
}
+
+ public function getFolder(string $name): ISimpleFolder {
+ $folder = $this->folder->get($name);
+
+ if (!($folder instanceof Folder)) {
+ throw new NotFoundException();
+ }
+
+ return new SimpleFolder($folder);
+ }
+
+ public function newFolder(string $path): ISimpleFolder {
+ $folder = $this->folder->newFolder($path);
+ return new SimpleFolder($folder);
+ }
}