Error with NoobOS file system...

Topics: Compiler, Developing Cosmos (Working on Cosmos source code directly), Installation, Off Topic, Other, Using Cosmos (Developing your own OS, projects, etc), X#
Apr 14, 2016 at 7:42 PM
/// <summary>
/// The Init of NoobOS System.
/// </summary>
public static void RunInit()
{


    #region Disks and Partitions
    Helper.WriteLine("Getting Disks...");
    IDE[] IDEs = IDE.Devices.ToArray();
    Helper.WriteLine("Number of IDE disks: " + IDEs.Length);
    Helper.WriteLine("Looking for valid partitions...");
    for (int i = 0; i < IDEs.Length; i++)
    {
        PrimaryPartition[] parts = IDEs[i].PrimaryPartitions;
        for (int j = 0; j < parts.Length; j++)
        {
            if (parts[j].Infos.SystemID == 0xFA)
            {
                workPartition = parts[j];
            }
        }
    }
    //#warning Revert to == null!!!
    if (workPartition == null)
    {
        DiskHandler.CreatePartitions(IDEs);
        Helper.WriteLine("The machine needs to be restarted.");

    }
    Helper.Done();
    #endregion
    #region FileSystem
    Helper.Write("Checking FileSystem... ");
    NoobFileSystem fs;
    try
    {
        fs = new NoobFileSystem(workPartition);
        NoobFileSystem.AddMapping("/", fs);
        Helper.Done();
    }
    catch (Exception ex)
    {
        Helper.Error("Error!" + ex.Message);
        Error = true;
    }
    #endregion
    //i have a problem with Creating directory....

 NoobFileSystem.mFS.Root.AddDirectory("asd");
}
i have a problem with this: NoobFileSystem.mFS.Root.AddDirectory("asd");

What i must make for creating directorys and files ?

Excuse me ,my english is bad..... :(
vs 2013 cosmos-last version 108447