func (d *Dir) cleanFiles(entries []os.DirEntry) (err error) {
	for name := range d.Files {
		found := false
		for _, entry := range entries {
			if entry.IsDir() {
				continue
			}
			if entry.Name() == name {
				found = true
				break
			}
		}
		if !found {
			delete(d.Files, name)
		}
	}
	return
}
// cleanFiles removes files that no logner exist
cleanFiles removes files that no logner exist
// cleanFiles removes files that no logner exist
func (d *Dir) cleanFiles(entries []os.DirEntry) (err error) {
	for name := range d.Files {
		found := false
		for _, entry := range entries {
			if entry.IsDir() {
				continue
			}
			if entry.Name() == name {
				found = true
				break
			}
		}
		if !found {
			delete(d.Files, name)
		}
	}
	return
}
func ( d * Dir ) cleanFiles ( entries [ ] os . DirEntry ) ( err error ) { for name := range d . Files { found := false for _ , entry := range entries { if entry . IsDir ( ) { continue } if entry . Name ( ) == name { found = true break } } if ! found { delete ( d . Files , name ) } } return }
cleanFiles removes files that no logner exist
cleanFiles removes files that no logner exist