public int SetRoot(string path) { var myNewIndex = AddEntry(); Entry[] block; var entryIndex = EntryIndex(myNewIndex, out block); Root = new RootEntry(); Root.GetRootEntry(path); Root.RootIndex = myNewIndex; block[entryIndex].FullPath = Root.Path; block[entryIndex].Parent = 0; block[entryIndex].IsDirectory = true; return(myNewIndex); }