public void ImportInput(string inputDirectoryPath, bool overwrite) { if (DirectoryUtils.IsDirectoryExists(inputDirectoryPath)) { var inputIe = new InputIe(Fso.PublishmentSystemId, inputDirectoryPath); inputIe.ImportInput(overwrite); } }
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); }