func (f *File) Stat() (changed bool, err error) {
	var info fs.FileInfo
	if f.f == nil {
		info, err = os.Stat(f.Path())
	} else {
		info, err = f.f.Stat()
	}
	if err != nil {
		return
	}
	if mode := info.Mode(); mode != f.Mode {
		f.Mode = mode
		changed = true
	}
	if modified := info.ModTime(); modified != f.Modified {
		f.Modified = modified
		changed = true
	}
	return
}
// Stat updates the metadata for this File in memory
Stat updates the metadata for this File in memory
// Stat updates the metadata for this File in memory
func (f *File) Stat() (changed bool, err error) {
	var info fs.FileInfo
	if f.f == nil {
		info, err = os.Stat(f.Path())
	} else {
		info, err = f.f.Stat()
	}
	if err != nil {
		return
	}
	if mode := info.Mode(); mode != f.Mode {
		f.Mode = mode
		changed = true
	}
	if modified := info.ModTime(); modified != f.Modified {
		f.Modified = modified
		changed = true
	}
	return
}
func ( f * File ) Stat ( ) ( changed bool , err error ) { var info fs . FileInfo if f . f == nil { info , err = os . Stat ( f . Path ( ) ) } else { info , err = f . f . Stat ( ) } if err != nil { return } if mode := info . Mode ( ) ; mode != f . Mode { f . Mode = mode changed = true } if modified := info . ModTime ( ) ; modified != f . Modified { f . Modified = modified changed = true } return }
Stat updates the metadata for this File in memory
Stat updates the metadata for this File in memory