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 string GetCachedProgramAssetPath(string url) { string fileName = Path.GetFileName(url); return(Path.Combine(LocalDirectoryHelper.GetProgramAssetFolderPath(), fileName)); }
public static string GetProgramAssetMetaPath() { return(Path.Combine(LocalDirectoryHelper.GetProgramAssetFolderPath(), "meta.txt")); }