/// <summary> /// Create directory, if directory is not exist /// </summary> /// <param name="assetType"></param> public static void ValidateExportPath(this AssetType assetType) { var path = assetType.GetExportPath(); if (Directory.Exists(path)) { return; } Directory.CreateDirectory(path); }
/// <summary> /// Export statistic result /// </summary> /// <param name="assetType"></param> /// <param name="???"></param> public static void ExportResult(AssetType assetType, string name, StringBuilder stringBuilder) { var fileName = $"{assetType.GetExportPath()}/{name}.csv"; File.WriteAllText(fileName, stringBuilder.ToString()); }