1 // =================================
 2 // Copyright (c) 2022 Seppo Laakko
 3 // Distributed under the MIT license
 4 // =================================
 5 
 6 using System;
 7 using System.Os;
 8 using System.IO;
 9 
10 void MakeDirectory(const string& pathbool parentsbool verboseint mode)
11 {
12     if (parents)
13     {
14         CreateDirectories(pathmode);
15         if (verbose)
16         {
17             Console.Out() << "directory '" + path + "' created" << endl();
18         }
19     }
20     else
21     {
22         CreateDirectory(pathmode);
23         if (verbose)
24         {
25             Console.Out() << "directory '" + path + "' created" << endl();
26         }
27     }
28 }