public static void Main(string[] args) { if (args.Count() != 2) { Console.WriteLine("Not enough arguments."); return; } string src = args[0]; string dest = args[1]; if ((!Directory.Exists(src) || !Directory.Exists(Directory.GetDirectoryRoot(dest)) || src == dest)) { return; } LogBuffer logBuffer = new LogBuffer(300, 64); FileCopyService fileCopyService = new FileCopyService(logBuffer); fileCopyService.StartCopying(src, dest); }
public FileCopyService(LogBuffer logBuffer) { _logBuffer = logBuffer; }