From a10440a45c40652b13e883aec832a0c8ded685e8 Mon Sep 17 00:00:00 2001 From: John T Date: Sun, 5 Nov 2017 18:47:46 -0500 Subject: Added a half-complete ShiftFS and did some code cleanup --- ShiftOS.Engine/ShiftFS/ShiftFS.cs | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 ShiftOS.Engine/ShiftFS/ShiftFS.cs (limited to 'ShiftOS.Engine/ShiftFS/ShiftFS.cs') diff --git a/ShiftOS.Engine/ShiftFS/ShiftFS.cs b/ShiftOS.Engine/ShiftFS/ShiftFS.cs new file mode 100644 index 0000000..d188bee --- /dev/null +++ b/ShiftOS.Engine/ShiftFS/ShiftFS.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.ObjectModel; +using System.IO; + +namespace ShiftOS.Engine.ShiftFS +{ + public static class ShiftFs + { + internal static readonly string SavePath = Path.Combine(Environment.CurrentDirectory, "Save") + "\\"; + + public static ObservableCollection Drives = new ObservableCollection(); + + static ShiftFs() + { + if (Directory.Exists(SavePath)) + { + var info = new DirectoryInfo(SavePath); + foreach (var dir in info.EnumerateDirectories()) + { + Drives.Add(new ShiftDrive(dir)); + } + } + else + { + CreateSaveFile(); + } + } + + public static void CreateSaveFile() + { + throw new NotImplementedException(); + } + } +} \ No newline at end of file -- cgit v1.2.3