using System.IO; namespace Crowdin.Plugin.Helpers { public static class FolderHelper { public const string BaseResourcesDirectory = "Assets/Resources"; public static readonly string resourcesDirectory = $"{BaseResourcesDirectory}/Crowdin"; public static readonly string downloadDirectory = $"{resourcesDirectory}/Download"; public static readonly string screenshotsDirectory = $"{resourcesDirectory}/Screenshots"; public static readonly string AssetsDirectory = $"{resourcesDirectory}/Assets"; public static void TryCreateFolders() { if (!Directory.Exists(BaseResourcesDirectory)) Directory.CreateDirectory(BaseResourcesDirectory); if (!Directory.Exists(resourcesDirectory)) Directory.CreateDirectory(resourcesDirectory); if (!Directory.Exists(screenshotsDirectory)) Directory.CreateDirectory(screenshotsDirectory); if (!Directory.Exists(downloadDirectory)) Directory.CreateDirectory(downloadDirectory); if (!Directory.Exists(AssetsDirectory)) Directory.CreateDirectory(AssetsDirectory); } } }