Skip to content

Commit 6cb1f82

Browse files
authored
filestorage: Use RemoveAll() to delete directories (#282)
According to the godoc
1 parent fb2d9bf commit 6cb1f82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filestorage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (s *FileStorage) Load(_ context.Context, key string) ([]byte, error) {
9292

9393
// Delete deletes the value at key.
9494
func (s *FileStorage) Delete(_ context.Context, key string) error {
95-
return os.Remove(s.Filename(key))
95+
return os.RemoveAll(s.Filename(key))
9696
}
9797

9898
// List returns all keys that match prefix.

0 commit comments

Comments
 (0)