func (d *Dir) update(entries []os.DirEntry) (err error) {
	for _, entry := range entries {
		name := entry.Name()
		if entry.IsDir() {
			err = d.updateDir(d.Path, name)
		} else {
			err = d.updateFile(d.Path, name)
		}
		if err != nil {
			return
		}
	}
	return
}
// update all of the entries in this directory
update all of the entries in this directory
// update all of the entries in this directory
func (d *Dir) update(entries []os.DirEntry) (err error) {
	for _, entry := range entries {
		name := entry.Name()
		if entry.IsDir() {
			err = d.updateDir(d.Path, name)
		} else {
			err = d.updateFile(d.Path, name)
		}
		if err != nil {
			return
		}
	}
	return
}
func ( d * Dir ) update ( entries [ ] os . DirEntry ) ( err error ) { for _ , entry := range entries { name := entry . Name ( ) if entry . IsDir ( ) { err = d . updateDir ( d . Path , name ) } else { err = d . updateFile ( d . Path , name ) } if err != nil { return } } return }
update all of the entries in this directory
update all of the entries in this directory