MCPcopy Create free account
hub / github.com/blues/note / delete

Method delete

lib/storage.go:89–95  ·  view source on GitHub ↗
(ctx context.Context, container string, object string)

Source from the content-addressed store, hash-verified

87}
88
89func (s storage) delete(ctx context.Context, container string, object string) (err error) {
90 path := fsObjectsToPath(container, object)
91 if deletionForbidden(ctx, path) {
92 return nil
93 }
94 return fio.Delete(ctx, path)
95}
96
97func (s storage) writeNotefile(ctx context.Context, notefile *Notefile, container string, object string) (err error) {
98 // Convert to JSON

Callers 5

CreateNoteboxFunction · 0.80
DeleteFunction · 0.80
uAddNotefileMethod · 0.80
DeleteNotefileMethod · 0.80
MergeNoteboxMethod · 0.80

Calls 3

fsObjectsToPathFunction · 0.85
deletionForbiddenFunction · 0.85
DeleteMethod · 0.65

Tested by

no test coverage detected