mirror of
https://github.com/tonytins/staggerpost.git
synced 2025-03-25 02:39:12 +00:00
Minor tweak to output directory method
Now checks if path contains "/." instead of "/"
This commit is contained in:
parent
90c8c40b73
commit
bd19bcb4ec
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
path = "/"
|
||||
path = "/."
|
||||
file = "example.json"
|
||||
communities = [
|
||||
"Games",
|
||||
|
|
Loading…
Add table
Reference in a new issue