aboutsummaryrefslogtreecommitdiff
path: root/Microbit.Kernel/MicroFS.cs
diff options
context:
space:
mode:
authorAlee <Alee14498@gmail.com>2019-02-12 19:45:04 -0500
committerAlee <Alee14498@gmail.com>2019-02-12 19:45:04 -0500
commit1f58603725b3266dbf8584e664c64d7d6aeb3d0f (patch)
tree60010df420b7ad41ad4b05dda065d2a86248688c /Microbit.Kernel/MicroFS.cs
parent3c4859d1c7eb811debad3e438bc528104471976a (diff)
downloadMicrobit-1f58603725b3266dbf8584e664c64d7d6aeb3d0f.tar.gz
Microbit-1f58603725b3266dbf8584e664c64d7d6aeb3d0f.tar.bz2
Microbit-1f58603725b3266dbf8584e664c64d7d6aeb3d0f.zip
Added the desktop, debug, file system and moreHEADmaster
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);
+ }
+ }
+}