mirror of
https://github.com/friendica/friendica
synced 2025-04-25 02:30:11 +00:00
Add move function to storage manager and console command
This commit is contained in:
parent
8dbedeee5e
commit
682456c7d1
2 changed files with 54 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue