示例#1
0
文件: Folder.cs 项目: DmT021/Urfunet
        public BaseFolder(BaseFileSystem fs)
        {
            this.FS = fs;
            Name = "\\";
            init();

            RelativePath = Path.Combine(fs.RelativePath, "");
            MetaPath = Path.Combine(fs.MetaPath, "");
            RealPath = Path.Combine(fs.RealPath, "");
        }
示例#2
0
文件: Folder.cs 项目: DmT021/Urfunet
        public BaseFolder(BaseFolder ParentFolder, string Name)
        {
            this.ParentFolder = ParentFolder;
            this.FS = ParentFolder.FS;
            this.RelativePath = RelativePath;
            this.Name = Name;

            RelativePath = Path.Combine(ParentFolder.RelativePath, Name);
            MetaPath = Path.Combine(ParentFolder.MetaPath, Name);
            RealPath = Path.Combine(ParentFolder.RealPath, Name);

            init();
        }