You are here

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

Overrides IFMDiskFileSystem::getDirs

File

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

Class

FMDiskFileSystem

Namespace

EdSDK\FlmngrServer\fs

Code

function getDirs() {
  $dirs = [];
  $fDir = $this->dirFiles;
  if (!file_exists($fDir) || !is_dir($fDir)) {
    throw new MessageException(FMMessage::createMessage(FMMessage::FM_ROOT_DIR_DOES_NOT_EXIST));
  }
  $this
    ->getDirs__fill($dirs, $fDir, "");
  return $dirs;
}