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