Esempio n. 1
0
        public void StartCopy()
        {
            LOG.Info($"Beginning copy for mapping:{_mapping}");
            var sw = new Stopwatch();

            sw.Start();
            IDirectory di = new DirectoryInfoWrapper(_mapping.Src);

            if (!di.Exists())
            {
                throw new FileNotFoundException($"Directory '{di.GetFullName()}' does not exist");
            }
            CopyDirectoryRecurive(di);
            LOG.Info($"Total files copied {_fileSystem.GetCopyCount()} in {sw.ElapsedMilliseconds / 1000.0}s");
        }