Пример #1
0
        public PathDB(string drive)
        {

            mft = new CChangeJournal(drive);
            var root = mft.GetRootFrn();
            string CurrentFolder = System.IO.Path.GetFullPath(".");

            //Dump(1688849860446726);

            var FilePath = CurrentFolder + string.Format(DBPATH, root.Key);

            /// Open the Database
            /// 
            Connect = new PathDBDataContext(FilePath);

            /// Create the Database if not there are not exist                        
            if (!Connect.DatabaseExists())
            {
                Connect.CreateDatabase();
                Build();
            }
            else
            {
                Update();
            }
        }