mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Make sure the reports overwrite
This commit is contained in:
@@ -5115,7 +5115,7 @@ namespace SabreTools.Helper
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
reportName += reportExtension;
|
reportName += reportExtension;
|
||||||
StreamWriter sw = new StreamWriter(File.OpenWrite(reportName));
|
StreamWriter sw = new StreamWriter(File.Open(reportName, FileMode.Create, FileAccess.Write));
|
||||||
|
|
||||||
// Make sure we have all files
|
// Make sure we have all files
|
||||||
List<string> newinputs = new List<string>();
|
List<string> newinputs = new List<string>();
|
||||||
@@ -5123,16 +5123,17 @@ namespace SabreTools.Helper
|
|||||||
{
|
{
|
||||||
if (File.Exists(input))
|
if (File.Exists(input))
|
||||||
{
|
{
|
||||||
newinputs.Add(input);
|
newinputs.Add(Path.GetFullPath(input));
|
||||||
}
|
}
|
||||||
if (Directory.Exists(input))
|
if (Directory.Exists(input))
|
||||||
{
|
{
|
||||||
foreach (string file in Directory.GetFiles(input, "*", SearchOption.AllDirectories))
|
foreach (string file in Directory.GetFiles(input, "*", SearchOption.AllDirectories))
|
||||||
{
|
{
|
||||||
newinputs.Add(file);
|
newinputs.Add(Path.GetFullPath(file));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
newinputs.Sort(new NaturalComparer());
|
||||||
|
|
||||||
// Write the header, if any
|
// Write the header, if any
|
||||||
string head = "";
|
string head = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user