private static function FlmngrServer::reqDirRename in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7
1 call to FlmngrServer::reqDirRename()
- FlmngrServer::flmngrRequest in vendor/
edsdk/ flmngr-server-php/ src/ FlmngrServer.php
File
- vendor/
edsdk/ flmngr-server-php/ src/ FlmngrServer.php, line 182
Class
Namespace
EdSDK\FlmngrServerCode
private static function reqDirRename($config) {
$dirPath = $_POST['d'];
$newName = $_POST['n'];
try {
$fileSystem = new FMDiskFileSystem($config);
$fileSystem
->renameDir($dirPath, $newName);
return new Response(NULL, TRUE);
} catch (MessageException $e) {
return new Response($e
->getFailMessage(), NULL);
}
}