Add move function to storage manager and console command
This commit is contained in:
committed by
Hypolite Petovan
parent
8dbedeee5e
commit
682456c7d1
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user