コード例 #1
0
 public virtual void Execute(TransferInformation transferInformation, AcceptedExtensions acceptedExtensions)
 {
     var destination = transferInformation.Destination;
     var sourceDir = transferInformation.Source;
     var files = _readAndExclude.ReadAndExclude(acceptedExtensions, sourceDir);
     _copier.Copy(files, destination);
     var info = String.Format("Files copied from location {0} to location {1}", sourceDir, destination);
     _consoleImpl.Write(info);
 }
コード例 #2
0
        public virtual void Execute(TransferInformation transferInformation, AcceptedExtensions acceptedExtensions)
        {
            var destination = transferInformation.Destination;
            var sourceDir   = transferInformation.Source;
            var files       = _readAndExclude.ReadAndExclude(acceptedExtensions, sourceDir);

            _copier.Copy(files, destination);
            var info = String.Format("Files copied from location {0} to location {1}", sourceDir, destination);

            _consoleImpl.Write(info);
        }