diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-01-12 11:28:04 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-01-28 11:59:46 +0100 |
commit | 497440477492b6e7df8ca1eb6c79eb7100a2fe24 (patch) | |
tree | 66050dc6e96bb1f7c78fb0729761c017410d5636 /lib/private/legacy/OC_Util.php | |
parent | 7e7284d790f55a14ec100771c08809e32514c533 (diff) | |
download | nextcloud-server-497440477492b6e7df8ca1eb6c79eb7100a2fe24.tar.gz nextcloud-server-497440477492b6e7df8ca1eb6c79eb7100a2fe24.zip |
files: Create files from template API
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/legacy/OC_Util.php')
-rw-r--r-- | lib/private/legacy/OC_Util.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index d5805719ea2..16e68b07cf1 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -66,6 +66,7 @@ use bantu\IniGetWrapper\IniGetWrapper; use OC\AppFramework\Http\Request; use OC\Files\Storage\LocalRootStorage; +use OCP\Files\Template\ITemplateManager; use OCP\IConfig; use OCP\IGroupManager; use OCP\ILogger; @@ -447,6 +448,8 @@ class OC_Util { self::copyr($skeletonDirectory, $userDirectory); // update the file cache $userDirectory->getStorage()->getScanner()->scan('', \OC\Files\Cache\Scanner::SCAN_RECURSIVE); + $templateManaer = \OC::$server->get(ITemplateManager::class); + $templateManaer->initializeTemplateDirectory(null, $userId); } } |