public static CreateDicrectoriesIfNotExist ( string directoryPath ) : void | ||
directoryPath | string | |
return | void |
public static void CreateDicrectoriesIfNotExist(string directoryPath)
{
// if folder not exist
if (!Directory.Exists(directoryPath))
{
Directory.CreateDirectory(directoryPath);
}
}