diff --git a/SabreTools.Helper/Objects/Dat/DatFile.cs b/SabreTools.Helper/Objects/Dat/DatFile.cs
index 0f17e4d1..b1c9ccf9 100644
--- a/SabreTools.Helper/Objects/Dat/DatFile.cs
+++ b/SabreTools.Helper/Objects/Dat/DatFile.cs
@@ -4992,6 +4992,7 @@ namespace SabreTools.Helper
/// True if blank items should be created for empty folders, false otherwise
/// True if dates should be archived for all files, false otherwise
/// Name of the directory to create a temp folder in (blank is current directory)
+ /// Output directory to
/// True if files should be copied to the temp directory before hashing, false otherwise
/// Populated string representing the name of the skipper to use, a blank string to use the first available checker, null otherwise
/// Integer representing the maximum amount of parallelization to be used
diff --git a/SabreTools.Helper/Objects/Logger.cs b/SabreTools.Helper/Objects/Logger.cs
index 7a4aea44..36fa5ca7 100644
--- a/SabreTools.Helper/Objects/Logger.cs
+++ b/SabreTools.Helper/Objects/Logger.cs
@@ -22,7 +22,7 @@ namespace SabreTools.Helper
private StreamWriter _log;
// Private required variables
- private string _basepath = "Logs" + Path.DirectorySeparatorChar;
+ private string _basepath = "logs" + Path.DirectorySeparatorChar;
///
/// Initialize a Logger object with the given information
diff --git a/SabreTools/Partials/SabreTools_Inits.cs b/SabreTools/Partials/SabreTools_Inits.cs
index 02a247ab..8ea8abf3 100644
--- a/SabreTools/Partials/SabreTools_Inits.cs
+++ b/SabreTools/Partials/SabreTools_Inits.cs
@@ -89,7 +89,8 @@ namespace SabreTools
/// True if GZIP archives should be treated as files, false otherwise
/// True if blank items should be created for empty folders, false otherwise
/// True if dates should be archived for all files, false otherwise
- /// Name of the directory to create a temp folder in (blank is current directory
+ /// Name of the directory to create a temp folder in (blank is default temp directory)
+ /// Name of the directory to output the DAT to (blank is the current directory)
/// True if files should be copied to the temp directory before hashing, false otherwise
/// Populated string representing the name of the skipper to use, a blank string to use the first available checker, null otherwise
/// Integer representing the maximum amount of parallelization to be used
@@ -113,6 +114,7 @@ namespace SabreTools
bool addBlankFilesForEmptyFolder,
bool addFileDates,
string tempDir,
+ string outDir,
bool copyFiles,
string headerToCheckAgainst,
int maxDegreeOfParallelism)
@@ -150,6 +152,9 @@ namespace SabreTools
Files = new SortedDictionary>(),
};
+ // Clean the temp directory
+ tempDir = (String.IsNullOrEmpty(tempDir) ? Path.GetTempPath() : tempDir);
+
// For each input directory, create a DAT
foreach (string path in inputs)
{
@@ -166,7 +171,7 @@ namespace SabreTools
// If it was a success, write the DAT out
if (success)
{
- datdata.WriteToFile("", _logger);
+ datdata.WriteToFile(outDir, _logger);
}
// Otherwise, show the help