示例#1
0
        /// <summary>
        /// Imports content items from the file system to the repository.
        /// </summary>
        /// <param name="sourcePath">File system path of a content item or folder to import.</param>
        /// <param name="targetPath">Target container in the repository. Default: the Root.</param>
        public Installer Import(string sourcePath, string targetPath = null)
        {
            Logger.PackageName = "import";
            Logger.Create(LogLevel.Default);

            using (Repository.Start(RepositoryBuilder))
            {
                ImportBase.Import(sourcePath, targetPath);
            }

            return(this);
        }