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

            AddPrefix(rootPrefix);
            DefaultRootDirectory = new LinuxDirectory(rootPrefix.CreatePath("/"), this);
        }
コード例 #2
0
ファイル: WindowsFileSystem.cs プロジェクト: rjshaver/core
 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:/"));
 }