MCPcopy
hub / github.com/wavetermdev/waveterm / DeepCopy

Method DeepCopy

pkg/filestore/blockstore.go:94–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92}
93
94func (f *WaveFile) DeepCopy() *WaveFile {
95 if f == nil {
96 return nil
97 }
98 newFile := *f
99 newFile.Meta = copyMeta(f.Meta)
100 return &newFile
101}
102
103func (WaveFile) UseDBMap() {}
104

Callers 2

StatMethod · 0.80
ListFilesMethod · 0.80

Calls 1

copyMetaFunction · 0.85

Tested by

no test coverage detected