protected override void Clean(CleanFileInfo file) { Console.WriteLine("Deleting file: {0}", file.RelativePath); try { file.File.Delete(); } catch (Exception ex) { using (new ConsoleColorDisposable(ConsoleColor.Red)) { Console.WriteLine("\tFailed: {0}", ex.Message); } } }
protected abstract void Clean(CleanFileInfo file);
protected override void Clean(CleanFileInfo file) { Console.WriteLine("(NOT) Deleting file: {0}", file.RelativePath); }