fix: remove associated shares when deleting file/folder

This commit is contained in:
Stavros Tsioulis
2025-07-03 07:42:55 +03:00
committed by GitHub
parent 47b3e218ad
commit e99e0b3028
3 changed files with 24 additions and 0 deletions

View File

@@ -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)
}