You are here

function FMDiskFileSystem::deleteDir in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

Overrides IFMDiskFileSystem::deleteDir

File

vendor/edsdk/flmngr-server-php/src/fs/FMDiskFileSystem.php, line 127

Class

FMDiskFileSystem

Namespace

EdSDK\FlmngrServer\fs

Code

function deleteDir($dirPath) {
  $fullPath = $this
    ->getAbsolutePath($dirPath);
  $res = $this
    ->rmDirRecursive($fullPath);
  if ($res === FALSE) {
    throw new MessageException(FMMessage::createMessage(FMMessage::FM_UNABLE_TO_DELETE_DIRECTORY));
  }
}