public static DiskFileSystem GetForRoot(string root) { lock (m_stdFileSystems) { if (!m_stdFileSystems.ContainsKey(root)) { m_stdFileSystems[root] = new DiskFileSystem(root); } return(m_stdFileSystems[root]); } }
protected DiskPathBase(DiskFileSystem fs, string path) { m_fileSystem = fs; m_path = path; }
protected DiskPathBase(string path) { m_fileSystem = DiskFileSystem.GetForRoot(Path.GetPathRoot(path)); m_path = IOTool.RelativePathTo(m_fileSystem.RootPath, path); }
public DiskFile(DiskFileSystem fs, string path) : base(fs, path) { InitializeDataFile(); }
public DiskFolder(DiskFileSystem fs, string path) : base(fs, path) { InitializeLink(); }