Created
October 15, 2015 21:25
-
-
Save LukasReschke/090d5c643f454891b3e2 to your computer and use it in GitHub Desktop.
How to move a folder in ownCloud using the Node API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once './lib/base.php'; | |
$rootFolder = \OC::$server->getRootFolder(); | |
$folderToMove = $rootFolder->get('/admin/files/folderToMove'); | |
$folderToMove->move('/admin/files/NewPath'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment