Exemple #1
0
        protected void CopyFilesTo(DirectoryHelperBase <TProcess> destDirectory)
        {
            var files = SourceDirectory.Directory.GetFiles();

            foreach (var fileInfo in files)
            {
                string targetFile = $"{destDirectory.Directory.FullName}\\{fileInfo.Name}";
                fileInfo.CopyTo(targetFile);
                Process(targetFile, destDirectory.Process);
            }
        }
Exemple #2
0
 protected FileHandlerBase(string sourcePath, ProcessDelegate process)
 {
     Process         = process;
     SourceDirectory = new DirectoryHelper <TProcess>(sourcePath);
 }