Skip to content

Commit

Permalink
Merge pull request #9665 from kobergj/AssimilateTrashCommand
Browse files Browse the repository at this point in the history
Fix trash command
  • Loading branch information
kobergj authored Jul 22, 2024
2 parents 9059045 + be6b3a0 commit 47412e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-trash-command.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion ocis/pkg/trash/trash.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47412e7

Please sign in to comment.