Add move function to storage manager and console command

This commit is contained in:
fabrixxm 2018-12-01 17:44:54 +01:00 committed by Hypolite Petovan
parent 8dbedeee5e
commit 682456c7d1
2 changed files with 54 additions and 2 deletions

View file

@ -105,6 +105,12 @@ HELP;
protected function do_move()
{
if (count($this->args) !== 1) {
throw new CommandArgsException('Invalid arguments');
}
$current = StorageManager::getBackend();
$r = StorageManager::move($current);
$this->out(sprintf("Moved %d files", $r));
}
}