aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS')
-rw-r--r--ShiftOS/ShiftOS/FilesystemContext.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/ShiftOS/ShiftOS/FilesystemContext.cs b/ShiftOS/ShiftOS/FilesystemContext.cs
index 1afe87e..5927782 100644
--- a/ShiftOS/ShiftOS/FilesystemContext.cs
+++ b/ShiftOS/ShiftOS/FilesystemContext.cs
@@ -129,5 +129,31 @@ namespace ShiftOS
{
Directory.CreateDirectory(MapToEnvironmentPath(InPath));
}
+
+ public void MoveDirectory(string InPath, string OutPath)
+ {
+ Directory.Move(MapToEnvironmentPath(InPath), MapToEnvironmentPath(OutPath));
+ }
+
+ public void CopyFile(string InPath, string OutPath)
+ {
+ File.Copy(MapToEnvironmentPath(InPath), MapToEnvironmentPath(OutPath));
+ }
+
+ public void MoveFile(string InPath, string OutPath)
+ {
+ File.Move(MapToEnvironmentPath(InPath), MapToEnvironmentPath(OutPath));
+ }
+
+ public void DeleteFile(string InPath)
+ {
+ File.Delete(MapToEnvironmentPath(InPath));
+ }
+
+ public void DeleteDirectory(string InPath, bool Recurse = false)
+ {
+ Directory.Delete(MapToEnvironmentPath(InPath), Recurse);
+ }
+
}
}