Example #1
0
        /// <summary>
        /// Load folder configuration.
        /// </summary>
        private void AddSynchronizedFolder(string folderName)
        {
            Config config = ConfigManager.CurrentConfig;

            CmisSync.Lib.Config.SyncConfig.Folder folder = config.GetFolder(folderName);
            if (folder == null)
            {
                System.Console.WriteLine("No folder found with this name: " + folderName);
                return;
            }
            RepoInfo repoInfo = folder.GetRepoInfo();

            repos.Add(repoInfo);
        }
Example #2
0
        /// <summary>
        /// Load folder configuration.
        /// </summary>
        private void AddSynchronizedFolder(string folderName, bool enableWatcher)
        {
            Config config = ConfigManager.CurrentConfig;

            CmisSync.Lib.Config.SyncConfig.Folder folder = config.GetFolder(folderName);
            if (folder == null)
            {
                System.Console.WriteLine("No folder found with this name: " + folderName);
                return;
            }
            RepoInfo repoInfo = folder.GetRepoInfo();
            CmisRepo cmisRepo = new CmisRepo(repoInfo, controller, enableWatcher, perpetual);

            repos.Add(cmisRepo);
        }
Example #3
0
        /// <summary>
        /// Load folder configuration.
        /// </summary>
        private void Init(string folderName)
        {
            Config config = ConfigManager.CurrentConfig;

            CmisSync.Lib.Config.SyncConfig.Folder folder = config.getFolder(folderName);
            if (folder == null)
            {
                System.Console.WriteLine("No folder found with this name: " + folderName);
                return;
            }
            RepoInfo repoInfo = folder.GetRepoInfo();

            ConsoleController controller = new ConsoleController();

            cmisRepo = new CmisRepo(repoInfo, controller);
        }