Skip to content

Commit

Permalink
Delete processing files after publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr committed May 1, 2024
1 parent c9221df commit fbfbdbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Geodatenbezug/Processors/TopicProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ public async Task<ProcessingResult> ProcessAsync()
processingResult.Info = "Data processed successfully";

logger.LogInformation($"Thema {topic.TopicTitle} ({topic.Canton}) erfolgreich verarbeitet. DownloadUrl: {processingResult.DownloadUrl}");

File.Delete(zipFullFilePath);
Directory.Delete(DataDirectory, true);
}
catch (Exception ex)
{
Expand Down

0 comments on commit fbfbdbe

Please sign in to comment.