Example #1
0
        public IList<Article> Import(params string[] files)
        {
            ImportData importData = new ImportData(files);

            var result = Import(importData);

            return result;
        }
Example #2
0
        public IList<Article> Import(ImportData importData)
        {
            if (ImportConfiguration == null)
                throw new NullReferenceException("No import configuration");

            _currentDestination = CreateTemporaryFolder();

            if (ImportConfiguration.IsArchive)
            {
                return ImportArchives(importData.FilePathes);
            }
            else
            {
                return ImportFiles(importData.FilePathes, true);
            }
        }