public static void CreateIfNotExists()
 {
     Directory.CreateDirectory(LocalDirectoryHelper.GetProgramAssetFolderPath());
     Directory.CreateDirectory(LocalDirectoryHelper.GetAssetFolderPath());
     Directory.CreateDirectory(LocalDirectoryHelper.GetCookieFolderPath());
     Directory.CreateDirectory(LocalDirectoryHelper.GetLogFolderPath());
     Directory.CreateDirectory(LocalDirectoryHelper.GetSettingsFolderPath());
 }
 public static void DeleteExpiredLog()
 {
     LocalDirectoryHelper.DeleteExpiredAsset(LocalDirectoryHelper.GetLogFolderPath());
 }
 public static void Clean()
 {
     LocalDirectoryHelper.DeleteDirectoryAssets(LocalDirectoryHelper.GetCookieFolderPath());
     LocalDirectoryHelper.DeleteDirectoryAssets(LocalDirectoryHelper.GetLogFolderPath());
 }
Ejemplo n.º 4
0
 private string GetLogFilePath()
 {
     return(LocalDirectoryHelper.GetLogFolderPath() + "/log-" + DateTime.Now.ToString("yyyy-MM-dd") + ".log");
 }