aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Engine/ShiftFS/ShiftFS.cs
blob: d188bee93a965d59d5328e444c8da78a458338fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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<ShiftDrive> Drives = new ObservableCollection<ShiftDrive>();

		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();
		}
	}
}