MCPcopy
hub / github.com/micro-editor/micro / UpdateModTime

Method UpdateModTime

internal/buffer/buffer.go:592–595  ·  view source on GitHub ↗

UpdateModTime updates the modtime of this file

()

Source from the content-addressed store, hash-verified

590
591// UpdateModTime updates the modtime of this file
592func (b *Buffer) UpdateModTime() (err error) {
593 b.ModTime, err = util.GetModTime(b.Path)
594 return
595}
596
597// ReOpen reloads the current buffer from disk
598func (b *Buffer) ReOpen() error {

Callers 4

saveToFileMethod · 0.95
ReOpenMethod · 0.95
HandleEventMethod · 0.80
NewBufferFunction · 0.80

Calls 1

GetModTimeFunction · 0.92

Tested by

no test coverage detected