private static void LoadPersistentState() { StateTable = new Dictionary <string, string>(); if (Refresh || !FileTools.FileExists(PersistentStatePath)) { FileTools.CommitTextFile(PersistentStatePath, ""); } string PersistentState = FileTools.LoadTextFile(PersistentStatePath, FileMode.Open); ParsePersistentState(PersistentState); }
public static void Commit() { if (Root == null) { Root = new Dictionary <string, IDictionary>(); } string Lines = ""; string Directory = ""; Commit(ref Lines, Root, Directory); FileTools.CommitTextFile(BookkeepingFileName, Lines); }
private static void Commit() { string Content = CommitPersistentState(); FileTools.CommitTextFile(PersistentStatePath, Content); }