示例#1
0
        public LinuxFileSystem()
        {
            Prefix rootPrefix = new Prefix("/", this);

            AddPrefix(rootPrefix);
            DefaultRootDirectory = new LinuxDirectory(rootPrefix.CreatePath("/"), this);
        }
示例#2
0
 public WindowsFileSystem()
 {
     cPrefix = new Prefix("c:/", this);
     AddPrefix(cPrefix);
     for (char prefix = 'd'; prefix <= 'z'; prefix++)
     {
         AddPrefix(new Prefix(prefix + ":/", this));
     }
     DefaultRootDirectory = new WindowsDirectory(cPrefix.CreatePath("c:/"));
 }