Minor tweak to output directory method

Now checks if path contains "/." instead of "/"
This commit is contained in:
Tony Bark 2025-03-22 21:03:42 -04:00
parent 90c8c40b73
commit bd19bcb4ec
2 changed files with 3 additions and 3 deletions

View file

@ -67,7 +67,7 @@ internal static class Tracer
/// <summary>
/// Determines the appropriate output directory based on the given directory path.
/// In DEBUG mode, it always returns the current working directory.
/// In release mode, it returns the provided directory unless it contains a '/', in which case it defaults to the current directory.
/// In release mode, it returns the provided directory unless it contains a "/.", in which case it defaults to the current directory.
/// </summary>
/// <param name="dir">The directory path to evaluate.</param>
/// <returns>The resolved output directory as a string.</returns>
@ -78,7 +78,7 @@ internal static class Tracer
#if DEBUG
return curDir;
#else
if (dir.Contains("/"))
if (dir.Contains("/."))
return curDir;
return dir;

View file

@ -1,4 +1,4 @@
path = "/"
path = "/."
file = "example.json"
communities = [
"Games",