using System.IO; namespace ADOFAIRenderer.Util; /// File system helpers. internal static class FileUtil { /// /// Creates and its missing parent directories when it does not exist. /// Exceptions of Directory.CreateDirectory are not caught (for example ArgumentException for an empty path, /// IOException or UnauthorizedAccessException when the directory cannot be created). /// /// Directory path, absolute or relative to the current directory. public static void CreateDirectory(string path) { if (!Directory.Exists(path)) Directory.CreateDirectory(path); } }