@@ -511,15 +511,16 @@ await Task.WhenAll(
511511if ( ! Directory . Exists ( OutputFolder ) )
512512{
513513_ = Directory . CreateDirectory ( OutputFolder ) ;
514+ }
514515
515- string tmpname = update . Xml . LocalizedProperties . Title + " (" + MachineType . ToString ( ) + ").uupmcreplay" ;
516- illegalCharacters = new Regex ( @"[\\/:*?""<>|]" ) ;
517- tmpname = illegalCharacters . Replace ( tmpname , "" ) ;
518- string filename = Path . Combine ( OutputFolder , tmpname ) ;
519- if ( WriteMetadata && ! File . Exists ( filename ) )
520- {
521- File . WriteAllText ( filename , JsonSerializer . Serialize ( update , new JsonSerializerOptions ( ) { WriteIndented = true , IncludeFields = true } ) ) ;
522- }
516+ string tmpname = update . Xml . LocalizedProperties . Title + " (" + MachineType . ToString ( ) + ").uupmcreplay" ;
517+ illegalCharacters = new Regex ( @"[\\/:*?""<>|]" ) ;
518+ tmpname = illegalCharacters . Replace ( tmpname , "" ) ;
519+ string filename = Path . Combine ( OutputFolder , tmpname ) ;
520+
521+ if ( WriteMetadata && ! File . Exists ( filename ) )
522+ {
523+ File . WriteAllText ( filename , JsonSerializer . Serialize ( update , new JsonSerializerOptions ( ) { WriteIndented = true , IncludeFields = true } ) ) ;
523524}
524525
525526using HttpDownloader helperDl = new ( OutputFolder , downloadThreads ) ;