SHA256
Document Render Core And API
This commit is contained in:
1 parent
354c42fdd9
commit
8deb64fd4d
22 files changed
+1241
-27
No files matched your search
@@ -2,8 +2,15 @@
|
||||
|
||||
namespace ADOFAIRenderer.Util;
|
||||
|
||||
/// <summary>File system helpers.</summary>
|
||||
internal static class FileUtil
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates <paramref name="path"/> 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).
|
||||
/// </summary>
|
||||
/// <param name="path">Directory path, absolute or relative to the current directory.</param>
|
||||
public static void CreateDirectory(string path)
|
||||
{
|
||||
if (!Directory.Exists(path)) Directory.CreateDirectory(path);
|
||||
|
||||
Reference in new issue
Block a user