@@ -462,6 +462,7 @@ private static string ScanInFile(string file)
462
462
{
463
463
try
464
464
{
465
+ List < string > protections = new List < string > ( ) ;
465
466
string tempPath = Path . Combine ( Path . GetTempPath ( ) , Guid . NewGuid ( ) . ToString ( ) ) ;
466
467
Directory . CreateDirectory ( tempPath ) ;
467
468
@@ -479,16 +480,17 @@ private static string ScanInFile(string file)
479
480
catch { }
480
481
481
482
if ( ! String . IsNullOrEmpty ( protection ) )
482
- {
483
- try
484
- {
485
- Directory . Delete ( tempPath , true ) ;
486
- }
487
- catch { }
488
- return protection ;
489
- }
483
+ protections . Add ( protection ) ;
490
484
}
491
485
}
486
+
487
+ try
488
+ {
489
+ Directory . Delete ( tempPath , true ) ;
490
+ }
491
+ catch { }
492
+
493
+ return string . Join ( ", " , protections ) ;
492
494
}
493
495
catch { }
494
496
}
@@ -498,6 +500,7 @@ private static string ScanInFile(string file)
498
500
{
499
501
try
500
502
{
503
+ List < string > protections = new List < string > ( ) ;
501
504
string tempPath = Path . Combine ( Path . GetTempPath ( ) , Guid . NewGuid ( ) . ToString ( ) ) ;
502
505
Directory . CreateDirectory ( tempPath ) ;
503
506
@@ -510,15 +513,16 @@ private static string ScanInFile(string file)
510
513
File . Delete ( tempfile ) ;
511
514
512
515
if ( ! String . IsNullOrEmpty ( protection ) )
513
- {
514
- try
515
- {
516
- Directory . Delete ( tempPath , true ) ;
517
- }
518
- catch { }
519
- return protection ;
520
- }
516
+ protections . Add ( protection ) ;
517
+ }
518
+
519
+ try
520
+ {
521
+ Directory . Delete ( tempPath , true ) ;
521
522
}
523
+ catch { }
524
+
525
+ return string . Join ( ", " , protections ) ;
522
526
}
523
527
catch { }
524
528
}
0 commit comments