public static ClusterChainDirectory ReadRoot(ClusterChain chain) { var result = new ClusterChainDirectory(chain, true); result.Read(); return(result); }
private static ClusterChainDirectory Read(FatDirectoryEntry entry, Fat fat) { if (!entry.IsDirectory()) { throw new ArgumentException(entry + " is no directory"); } var chain = new ClusterChain( fat, entry.GetStartCluster(), entry.IsReadonlyFlag()); var result = new ClusterChainDirectory(chain, false); result.Read(); return(result); }