You are here

public function ChosenLibCommands::drush_mkdir in Chosen 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/chosen_lib/src/Commands/ChosenLibCommands.php \Drupal\chosen_lib\Commands\ChosenLibCommands::drush_mkdir()

Parameters

string $path: The make directory path.

Return value

bool

1 call to ChosenLibCommands::drush_mkdir()
ChosenLibCommands::drush_tarball_extract in modules/chosen_lib/src/Commands/ChosenLibCommands.php

File

modules/chosen_lib/src/Commands/ChosenLibCommands.php, line 170

Class

ChosenLibCommands
A Drush commandfile.

Namespace

Drupal\chosen_lib\Commands

Code

public function drush_mkdir($path) {
  $fileservice = \Drupal::service('file_system');
  $fileservice
    ->mkdir($path);
  return TRUE;
}