aboutsummaryrefslogtreecommitdiff
path: root/Microbit.Kernel/MicroFS.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Microbit.Kernel/MicroFS.cs')
-rw-r--r--Microbit.Kernel/MicroFS.cs53
1 files changed, 53 insertions, 0 deletions
diff --git a/Microbit.Kernel/MicroFS.cs b/Microbit.Kernel/MicroFS.cs
new file mode 100644
index 0000000..44970b1
--- /dev/null
+++ b/Microbit.Kernel/MicroFS.cs
@@ -0,0 +1,53 @@
+/***********************************************************************
+ *
+ * Microbits
+ * Copyright (C) 2019 Alee14
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ *
+ ****************************************************************************/
+using System;
+using System.IO;
+using Newtonsoft.Json;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Microbit.Kernel
+{
+ public class MicroFS
+ {
+ public static string MicrobitFolder
+ {
+ get
+ {
+ return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Microbit");
+ }
+ }
+ public static string SystemFolder
+ {
+ get
+ {
+ return Path.Combine(MicrobitFolder, "System");
+
+ }
+ }
+ public static void CreateSystemFiles()
+ {
+ Directory.CreateDirectory(MicrobitFolder);
+ Directory.CreateDirectory(SystemFolder);
+ }
+ }
+}