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

Method ExternallyModified

internal/buffer/buffer.go:583–589  ·  view source on GitHub ↗

ExternallyModified returns whether the file being edited has been modified by some external process

()

Source from the content-addressed store, hash-verified

581// ExternallyModified returns whether the file being edited has
582// been modified by some external process
583func (b *Buffer) ExternallyModified() bool {
584 modTime, err := util.GetModTime(b.Path)
585 if err == nil {
586 return modTime != b.ModTime
587 }
588 return false
589}
590
591// UpdateModTime updates the modtime of this file
592func (b *Buffer) UpdateModTime() (err error) {

Callers 2

HandleEventMethod · 0.80
checkFunction · 0.80

Calls 1

GetModTimeFunction · 0.92

Tested by 1

checkFunction · 0.64