// reloadSnapshots overwrites allSnapshots internal
// variable with the designated snapshots file
reloadSnapshots overwrites allSnapshots internal
variable with the designated snapshots file
// reloadSnapshots overwrites allSnapshots internal // variable with the designated snapshots file
func reloadSnapshots() error {
	dir, err := findOrCreateSnapshotDirectory()
	if err != nil {
		return err
	}
	files, err := ioutil.ReadDir(dir)
	if err != nil {
		return err
	}
	paths := []string{}
	for _, file := range files {
		path := filepath.Join(dir, file.Name())
		if filepath.Ext(path) == snapshotExt {
			paths = append(paths, path)
		}
	}
	allSnapshots, err = parseSnapshotsFromPaths(paths)
	return err
}
func reloadSnapshots ( ) error { dir , err := findOrCreateSnapshotDirectory ( ) if err != nil { return err } files , err := ioutil . ReadDir ( dir ) if err != nil { return err } paths := [ ] string { } for _ , file := range files { path := filepath . Join ( dir , file . Name ( ) ) if filepath . Ext ( path ) == snapshotExt { paths = append ( paths , path ) } } allSnapshots , err = parseSnapshotsFromPaths ( paths ) return err }
reloadSnapshots overwrites allSnapshots internal
variable with the designated snapshots file
reloadSnapshots overwrites allSnapshots internal variable with the designated snapshots file