mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
fix: remove associated shares when deleting file/folder
This commit is contained in:
parent
47b3e218ad
commit
e99e0b3028
3 changed files with 24 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ type StorageBackend interface {
|
|||
Gets(path string, id uint) ([]*Link, error)
|
||||
Save(s *Link) error
|
||||
Delete(hash string) error
|
||||
DeleteWithPathPrefix(path string) error
|
||||
}
|
||||
|
||||
// Storage is a storage.
|
||||
|
|
@ -118,3 +119,7 @@ func (s *Storage) Save(l *Link) error {
|
|||
func (s *Storage) Delete(hash string) error {
|
||||
return s.back.Delete(hash)
|
||||
}
|
||||
|
||||
func (s *Storage) DeleteWithPathPrefix(path string) error {
|
||||
return s.back.DeleteWithPathPrefix(path)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue