You are here

protected function elFinderVolumeDrupal::_mkdir in elFinder file manager 8.2

Same name and namespace in other branches
  1. 6.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::_mkdir()
  2. 7.3 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::_mkdir()
  3. 7.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::_mkdir()

Create dir

@author Alexey Sukhotin

Parameters

string $path parent dir path:

string $name new directory name:

Return value

bool

File

src/Controller/elFinderVolumeDrupal.php, line 84
elFinder driver for Drupal filesystem.

Class

elFinderVolumeDrupal
@file

Code

protected function _mkdir($path, $name) {
  $path = $path . DIRECTORY_SEPARATOR . $name;
  if (@drupal_mkdir($path)) {
    return $path;
  }
  return FALSE;
}