1
2
3
4
5
6 using System;
7 using System.Os;
8 using System.IO;
9
10 void MakeDirectory(const string& path, bool parents, bool verbose, int mode)
11 {
12 if (parents)
13 {
14 CreateDirectories(path, mode);
15 if (verbose)
16 {
17 Console.Out() << "directory '" + path + "' created" << endl();
18 }
19 }
20 else
21 {
22 CreateDirectory(path, mode);
23 if (verbose)
24 {
25 Console.Out() << "directory '" + path + "' created" << endl();
26 }
27 }
28 }