/// <summary> /// name 不能带'/' 与 '\' /// </summary> /// <param name="name"></param> /// <returns></returns> public IFileSysPackerStrategy AddFileTable(string name) { if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException(name); } string dir = GetTableRootDir(this.RootDir, name);//Path.Combine(RootDir,name); _checkDBFilePath(dir, FileTableDBName); //建立文件 if (!m_Tables.ContainsKey(name)) { Disk_FileTable df = new Disk_FileTable(this, name, dir); m_Tables.Add(name, df); } return(m_Tables[name]); }
/// <summary> /// name 不能带'/' 与 '\' /// </summary> /// <param name="name"></param> /// <returns></returns> public IFileSysPackerStrategy AddFileTable(string name) { if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException(name); } string dir = GetTableRootDir(this.RootDir, name);//Path.Combine(RootDir,name); _checkDBFilePath(dir, FileTableDBName); //建立文件 if (!m_Tables.ContainsKey(name)) { Disk_FileTable df = new Disk_FileTable(this, name, dir); m_Tables.Add(name, df); } return m_Tables[name]; }