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 GetCachedAssetPath(string url) { string fileName = Path.GetFileName(url); return(Path.Combine(LocalDirectoryHelper.GetAssetFolderPath(), url.GetHashCode().ToString() + "-" + fileName)); }
public static void DeleteExpiredAsset() { LocalDirectoryHelper.DeleteExpiredAsset(LocalDirectoryHelper.GetAssetFolderPath()); }