Exemplo n.º 1
0
 public void ImportInput(string inputDirectoryPath, bool overwrite)
 {
     if (DirectoryUtils.IsDirectoryExists(inputDirectoryPath))
     {
         var inputIe = new InputIe(Fso.PublishmentSystemId, inputDirectoryPath);
         inputIe.ImportInput(overwrite);
     }
 }
Exemplo n.º 2
0
        public void ImportInputByZipFile(string zipFilePath, bool overwrite)
        {
            var directoryPath = PathUtils.GetTemporaryFilesPath("Input");

            DirectoryUtils.DeleteDirectoryIfExists(directoryPath);
            DirectoryUtils.CreateDirectoryIfNotExists(directoryPath);

            ZipUtils.UnpackFiles(zipFilePath, directoryPath);

            var inputIe = new InputIe(Fso.PublishmentSystemId, directoryPath);

            inputIe.ImportInput(overwrite);
        }