You are here

public function ChosenLibCommands::drush_move_dir in Chosen 8.2

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

Parameters

string $src: The origin filename or directory.

string $dest: The new filename or directory.

Return value

bool

1 call to ChosenLibCommands::drush_move_dir()
ChosenLibCommands::plugin in modules/chosen_lib/src/Commands/ChosenLibCommands.php
Download and install the Chosen plugin.

File

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

Class

ChosenLibCommands
A Drush commandfile.

Namespace

Drupal\chosen_lib\Commands

Code

public function drush_move_dir($src, $dest) {
  $fs = new Filesystem();
  $fs
    ->rename($src, $dest, TRUE);
  return TRUE;
}