Levelcode-IBRCAD/FFT/FileFolderverify.cs

71 lines
2.6 KiB
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FFT
{
public class FileFolderverify
{
public void filefolderverify()
{
if (!Directory.Exists(EndConfig.FolderDirectoy))
{
Directory.CreateDirectory(EndConfig.FolderDirectoy);
}//If the directory does not exist, then you must create it
if (!Directory.Exists(EndConfig.FolderDirectoyConfig))
{
Directory.CreateDirectory(EndConfig.FolderDirectoyConfig);
}//If the directory does not exist, then you must create it
if (!Directory.Exists(EndConfig.Directorylog))
{
Directory.CreateDirectory (EndConfig.Directorylog);
}//If the directory does not exist, then you must create it
if (!Directory.Exists(EndConfig.Directoryencrypt))
{
Directory.CreateDirectory(EndConfig.Directoryencrypt);
}//If the directory does not exist, then you must create it
if (!Directory.Exists(EndConfig.Folderreports))
{
Directory.CreateDirectory(EndConfig.Folderreports);
}//If the directory does not exist, then you must create it
if (!Directory.Exists(EndConfig.Folderimages))
{
Directory.CreateDirectory(EndConfig.Folderimages);
}//If the directory does not exist, then you must create it
if (!File.Exists(EndConfig.FileConfigDB))
{
File.Create(EndConfig.FileConfigDB);
}//If the file does not exist, then you must create it
if (!File.Exists(EndConfig.FileConfigEmail))
{
File.Create(EndConfig.FileConfigEmail);
}//If the file does not exist, then you must create it
if (!File.Exists(EndConfig.FilefolderlogsLogin))
{
File.Create(EndConfig.FilefolderlogsLogin);
}//If the file does not exist, then you must create it
if (!File.Exists(EndConfig.Encryptedfile))
{
File.Create(EndConfig.Encryptedfile);
}//If the file does not exist, then you must create it
if (!File.Exists(EndConfig.Fileempconfig))
{
File.Create(EndConfig.Fileempconfig);
}
if(!File.Exists(EndConfig.Filedefaultconfig))
{
File.Create(EndConfig.Filedefaultconfig);
}//if the file does not exist, then you must create it
}
}
}