Exemple #1
0
        public void UploadData()
        {
            if (transferMode == TransferMode.FTP)
            {
                ftpUpload.Upload2(singlefileDirServer + Path.GetFileName(stdfPath), stdfPath);
                ftpUpload.Upload2(singlefileDirServer + Path.GetFileName(compressedStdfPath), compressedStdfPath);

                ftpUpload.Upload2(singlefileDirServer + Path.GetFileName(mtcsvPath), mtcsvPath);
                ftpUpload.Upload2(singlefileDirServer + Path.GetFileName(compressedMTcsvPath), compressedMTcsvPath);
            }
            else
            {
                File.Copy(stdfPath, singlefileDirServer + Path.GetFileName(stdfPath), true);
                File.Copy(compressedStdfPath, singlefileDirServer + Path.GetFileName(compressedStdfPath), true);

                File.Copy(mtcsvPath, singlefileDirServer + Path.GetFileName(mtcsvPath), true);
                File.Copy(compressedMTcsvPath, singlefileDirServer + Path.GetFileName(compressedMTcsvPath), true);
            }
        }