From be6b3a00171ced1dc0ca61f994a7af7c6dbae008 Mon Sep 17 00:00:00 2001 From: jkoberg Date: Mon, 22 Jul 2024 12:46:15 +0200 Subject: [PATCH] fix(ocis): fix trash command Signed-off-by: jkoberg --- changelog/unreleased/fix-trash-command.md | 5 +++++ ocis/pkg/trash/trash.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/fix-trash-command.md diff --git a/changelog/unreleased/fix-trash-command.md b/changelog/unreleased/fix-trash-command.md new file mode 100644 index 00000000000..363b9fb18db --- /dev/null +++ b/changelog/unreleased/fix-trash-command.md @@ -0,0 +1,5 @@ +Enhancement: Fix trash command + +The `ocis trash purge-empty-dirs` command should work on any storage provider, not just `storage/users`. + +https://github.com/owncloud/ocis/pull/9665 diff --git a/ocis/pkg/trash/trash.go b/ocis/pkg/trash/trash.go index 985960c06ea..de24dbcde5a 100644 --- a/ocis/pkg/trash/trash.go +++ b/ocis/pkg/trash/trash.go @@ -9,7 +9,7 @@ import ( const ( // _trashGlobPattern is the glob pattern to find all trash items - _trashGlobPattern = "storage/users/spaces/*/*/trash/*/*/*/*" + _trashGlobPattern = "spaces/*/*/trash/*/*/*/*" ) // PurgeTrashEmptyPaths purges empty paths in the trash