We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 916b91d commit 5e4d403Copy full SHA for 5e4d403
Runtime/Directory.Extensions.cs
@@ -9,7 +9,13 @@
9
public static class DirectoryExtensions
10
{
11
/// <summary> Creates a directory if it doesn't exist. </summary>
12
- public static void CreateDirectoryIfVoid(this string path) => path.DirectoryExists()?.CreateDirectory();
+ public static void CreateDirectoryIfVoid(this string path)
13
+ {
14
+ if (path.DirectoryExists() == null)
15
16
+ path.CreateDirectory();
17
+ }
18
19
20
/// Returns the directory path if it exists, otherwise returns null.
21
/// Used for null checking
0 commit comments