示例#1
0
        public static ClusterChainDirectory ReadRoot(ClusterChain chain)
        {
            var result = new ClusterChainDirectory(chain, true);

            result.Read();
            return(result);
        }
示例#2
0
        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);
        }