aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlkaline Thunder <[email protected]>2018-12-28 01:19:17 -0500
committerAlkaline Thunder <[email protected]>2018-12-28 01:19:17 -0500
commitb71f731e2580718d4c527b84f41a67dd75285ae7 (patch)
treeea941678aca6eebd4edd33525261e7230dc9ea79
parent6995abe190fad72892fb621758914ea2e2ebe92d (diff)
downloadshiftos-challenge-b71f731e2580718d4c527b84f41a67dd75285ae7.tar.gz
shiftos-challenge-b71f731e2580718d4c527b84f41a67dd75285ae7.tar.bz2
shiftos-challenge-b71f731e2580718d4c527b84f41a67dd75285ae7.zip
Filesystem can now create directories
-rw-r--r--ShiftOS/ShiftOS/FilesystemContext.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/ShiftOS/ShiftOS/FilesystemContext.cs b/ShiftOS/ShiftOS/FilesystemContext.cs
index 96d3832..1afe87e 100644
--- a/ShiftOS/ShiftOS/FilesystemContext.cs
+++ b/ShiftOS/ShiftOS/FilesystemContext.cs
@@ -125,6 +125,9 @@ namespace ShiftOS
WriteAllText(InPath, string.Join(Environment.NewLine, InLines));
}
-
+ public void CreateDirectory(string InPath)
+ {
+ Directory.CreateDirectory(MapToEnvironmentPath(InPath));
+ }
}
}