Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        private static void Commit()
        {
            string Content = CommitPersistentState();

            FileTools.CommitTextFile(PersistentStatePath, Content);
        }