Beispiel #1
0
        private void SaveFTPPath(List <FtpListItem> ListFile, string ftpDir, string baseDir, Status status, FLType fz)
        {
            foreach (FtpListItem item in ListFile)
            {
                if (!_dataServices.CheckCasheFiles(item.FullName))
                {
                    var filesave = new FileCashes();
                    filesave.Date         = item.Modified;
                    filesave.Size         = item.Size;
                    filesave.Full_path    = item.FullName;
                    filesave.Zip_file     = item.Name;
                    filesave.BaseDir      = baseDir;
                    filesave.Dirtype      = ftpDir;
                    filesave.Fz_type      = fz;
                    filesave.Status       = status;
                    filesave.Modifid_date = DateTime.Now;

                    SavePath(filesave);
                }
            }
        }