mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-10 06:10:05 -06:00
implement Delete operation
This commit is contained in:
@@ -263,5 +263,5 @@ func (idx *Autoincrement) next() (int, error) {
|
||||
|
||||
// Delete deletes the index folder from its storage.
|
||||
func (idx *Autoincrement) Delete() error {
|
||||
return nil
|
||||
return os.Remove(idx.indexRootDir)
|
||||
}
|
||||
|
||||
1
accounts/pkg/indexer/index/disk/helper.go
Normal file
1
accounts/pkg/indexer/index/disk/helper.go
Normal file
@@ -0,0 +1 @@
|
||||
package disk
|
||||
@@ -236,5 +236,5 @@ func (idx *NonUnique) FilesDir() string {
|
||||
|
||||
// Delete deletes the index folder from its storage.
|
||||
func (idx *NonUnique) Delete() error {
|
||||
return nil
|
||||
return os.Remove(idx.indexRootDir)
|
||||
}
|
||||
|
||||
@@ -223,5 +223,5 @@ func isValidSymlink(path string) (err error) {
|
||||
|
||||
// Delete deletes the index folder from its storage.
|
||||
func (idx *Unique) Delete() error {
|
||||
return nil
|
||||
return os.Remove(idx.indexRootDir)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user