diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-14 11:19:00 +0200 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2022-10-14 16:18:37 +0200 |
commit | e4ff84d468acf3c0e2d497412b7192651bbd4e23 (patch) | |
tree | 66c789af19efbd536d3ff7a6035f087cca9639ed /lib/private/Files/SimpleFS/SimpleFolder.php | |
parent | 95d45c20580683a7ed332b2e313ee42b8b728bc7 (diff) | |
download | nextcloud-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.php | 15 |
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); + } } |