func (d *Deleter) Rollback() {
	for _, f := range append(d.files, d.dirs...) {
		if err := d.renameForRestore(f); err != nil {
			logger.Warnf("Error restoring %q: %v", f, err)
		}
	}

	d.files = nil
	d.dirs = nil
}
// Rollback tries to rename all marked files and directories back to their
// original names and clears the marked list. Any errors encountered are
// logged. All files will be attempted regardless of any errors occurred.
Rollback tries to rename all marked files and directories back to their
original names and clears the marked list. Any errors encountered are
logged. All files will be attempted regardless of any errors occurred.
// Rollback tries to rename all marked files and directories back to their // original names and clears the marked list . Any errors encountered are // logged . All files will be attempted regardless of any errors occurred .
func (d *Deleter) Rollback() {
	for _, f := range append(d.files, d.dirs...) {
		if err := d.renameForRestore(f); err != nil {
			logger.Warnf("Error restoring %q: %v", f, err)
		}
	}
	d.files = nil
	d.dirs = nil
}
func ( d * Deleter ) Rollback ( ) { for _ , f := range append ( d . files , d . dirs ... ) { if err := d . renameForRestore ( f ) ; err != nil { logger . Warnf ( " " , f , err ) } } d . files = nil d . dirs = nil }
Rollback tries to rename all marked files and directories back to their
original names and clears the marked list.
Rollback tries to rename all marked files and directories back to their original names and clears the marked list .