Esempio n. 1
0
        public void LoadIgnoreTree()
        {
            Stopwatch.Restart();

            try
            {
                m_ignoreTree = Utilities.XmlDeserializeObject <Tree <RemoteFileInfo> >(IgnoreCache);
            }
            catch (Exception e)
            {
                LOG.ErrorFormat("Error: {0}", e);
            }

            if (m_ignoreTree == null)
            {
                LOG.WarnFormat("Ignore tree at {0} is not available", IgnoreCache);
            }

            if (PrintTrees)
            {
                PrintIgnoreChildren();
            }
            else
            {
                int numberOfFiles = Tree <RemoteFileInfo> .GetNumberOfChildren(m_ignoreTree, 0);

                LOG.DebugFormat("Loaded {0} ignored files", numberOfFiles);
            }
        }