16 lines
250 B
C#
16 lines
250 B
C#
|
using System;
|
|||
|
using System.IO;
|
|||
|
namespace sharp.extensions
|
|||
|
{
|
|||
|
public static class DirectoryExtensions
|
|||
|
{
|
|||
|
|
|||
|
public static void EnsureDirectoryExists(string path){
|
|||
|
if (!Directory.Exists(path)){
|
|||
|
Directory.CreateDirectory(path);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|