func (d *Dir) Read() (err error) {
	entries, err := os.ReadDir(d.Path)
	if err != nil {
		return
	}
	if err = d.cleanDirs(entries); err != nil {
		return
	}
	if err = d.cleanFiles(entries); err != nil {
		return
	}
	err = d.update(entries)
	return
}
// Read updates the contents of this directory from disk
Read updates the contents of this directory from disk
// Read updates the contents of this directory from disk
func (d *Dir) Read() (err error) {
	entries, err := os.ReadDir(d.Path)
	if err != nil {
		return
	}
	if err = d.cleanDirs(entries); err != nil {
		return
	}
	if err = d.cleanFiles(entries); err != nil {
		return
	}
	err = d.update(entries)
	return
}
func ( d * Dir ) Read ( ) ( err error ) { entries , err := os . ReadDir ( d . Path ) if err != nil { return } if err = d . cleanDirs ( entries ) ; err != nil { return } if err = d . cleanFiles ( entries ) ; err != nil { return } err = d . update ( entries ) return }
Read updates the contents of this directory from disk
Read updates the contents of this directory from disk