MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Truncate

Method Truncate

internal/utils/fs/file.go:78–83  ·  view source on GitHub ↗
(size int64)

Source from the content-addressed store, hash-verified

76}
77
78func (this *File) Truncate(size int64) (err error) {
79 WriterLimiter.Ack()
80 err = this.rawFile.Truncate(size)
81 WriterLimiter.Release()
82 return
83}
84
85func (this *File) Close() (err error) {
86 if !this.readonly {

Callers 4

CompactMethod · 0.45
InitMethod · 0.45
RemoveAllItemsMethod · 0.45
WriteAtMethod · 0.45

Calls 2

AckMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected