func (d *Deleter) Commit() {
	for _, f := range d.files {
		if err := d.RenamerRemover.Remove(f + deleteFileSuffix); err != nil {
			logger.Warnf("Error deleting file %q: %v", f+deleteFileSuffix, err)
		}
	}

	for _, f := range d.dirs {
		if err := d.RenamerRemover.RemoveAll(f + deleteFileSuffix); err != nil {
			logger.Warnf("Error deleting directory %q: %v", f+deleteFileSuffix, err)
		}
	}

	d.files = nil
	d.dirs = nil
}
// Commit deletes all files marked for deletion and clears the marked list.
// Any errors encountered are logged. All files will be attempted, regardless
// of the errors encountered.
Commit deletes all files marked for deletion and clears the marked list.
Any errors encountered are logged. All files will be attempted, regardless
of the errors encountered.
// Commit deletes all files marked for deletion and clears the marked list . // Any errors encountered are logged . All files will be attempted regardless // of the errors encountered .
func (d *Deleter) Commit() {
	for _, f := range d.files {
		if err := d.RenamerRemover.Remove(f + deleteFileSuffix); err != nil {
			logger.Warnf("Error deleting file %q: %v", f+deleteFileSuffix, err)
		}
	}
	for _, f := range d.dirs {
		if err := d.RenamerRemover.RemoveAll(f + deleteFileSuffix); err != nil {
			logger.Warnf("Error deleting directory %q: %v", f+deleteFileSuffix, err)
		}
	}
	d.files = nil
	d.dirs = nil
}
func ( d * Deleter ) Commit ( ) { for _ , f := range d . files { if err := d . RenamerRemover . Remove ( f + deleteFileSuffix ) ; err != nil { logger . Warnf ( " " , f + deleteFileSuffix , err ) } } for _ , f := range d . dirs { if err := d . RenamerRemover . RemoveAll ( f + deleteFileSuffix ) ; err != nil { logger . Warnf ( " " , f + deleteFileSuffix , err ) } } d . files = nil d . dirs = nil }
Commit deletes all files marked for deletion and clears the marked list.
Commit deletes all files marked for deletion and clears the marked list .