diff options
author | Daniel Rudolf <github.com@daniel-rudolf.de> | 2021-10-07 20:18:03 +0300 |
---|---|---|
committer | Daniel Rudolf <github.com@daniel-rudolf.de> | 2021-10-07 20:18:03 +0300 |
commit | 54cb4ac840b873677e2689b59230c3d3bab6993b (patch) | |
tree | dddf10e65bb7706703aceb7f922aeaceb40992c0 /apps/files_versions | |
parent | c8870d0756c10b75ec52b29329bdd9170892bd10 (diff) |
Improve occ versions:cleanup --path option
Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/lib/Command/CleanUp.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_versions/lib/Command/CleanUp.php b/apps/files_versions/lib/Command/CleanUp.php index 1f171fea7ab..d7bb4caa483 100644 --- a/apps/files_versions/lib/Command/CleanUp.php +++ b/apps/files_versions/lib/Command/CleanUp.php @@ -64,7 +64,7 @@ class CleanUp extends Command { 'path', 'p', InputOption::VALUE_REQUIRED, - 'only delete versions of this path, e.g. --path="/alice/files_versions/Music"' + 'only delete versions of this path, e.g. --path="/alice/files/Music"' ); } @@ -74,7 +74,7 @@ class CleanUp extends Command { $path = $input->getOption('path'); if ($path) { - if (!preg_match('#^/([^/]+)/files_versions(/.*)?$#', $path, $pathMatches)) { + if (!preg_match('#^/([^/]+)/files(/.*)?$#', $path, $pathMatches)) { $output->writeln("<error>Invalid path given</error>"); return 1; } |