update launch.json and helper files to use J: drive paths

This commit is contained in:
2025-09-29 18:21:11 -07:00
parent 7a2492f14b
commit 46590d48cd
3 changed files with 25 additions and 7 deletions

14
.vscode/launch.json vendored
View File

@ -11,6 +11,20 @@
"preLaunchTask": "Build", "preLaunchTask": "Build",
"program": "${workspaceFolder}/bin/Debug/net8.0/win-x64/File-Folder-Helper.dll", "program": "${workspaceFolder}/bin/Debug/net8.0/win-x64/File-Folder-Helper.dll",
"args": [ "args": [
"s",
"X",
"J:/5-Other-Small/Kanban/Year-Season/2025/2025-0.Winter/1736201197030",
"Day-Helper-2024-06-23",
"*.md",
"##_Sub-tasks",
"-_[code-insiders](",
"index.md",
"-_[,](",
"##_Done",
".kan",
"J:/5-Other-Small/Kanban/Year-Season",
"316940400000",
"J:/5-Other-Small/Kanban-mestsa003/{}",
"s", "s",
"X", "X",
"X:/Production/Logs/EAF-Warn-Error-002-014-004~X:/Production/Logs/EAF-Info-Warn-002-059-000~X:/Production/Logs/EAF-Info-Warn-002-060-000~X:/Production/Logs/EAF-Info-Warn-002-061-001", "X:/Production/Logs/EAF-Warn-Error-002-014-004~X:/Production/Logs/EAF-Info-Warn-002-059-000~X:/Production/Logs/EAF-Info-Warn-002-060-000~X:/Production/Logs/EAF-Info-Warn-002-061-001",

View File

@ -243,7 +243,7 @@ internal static partial class Helper20240623 {
"-_[,](", "-_[,](",
"##_Done", "##_Done",
".kan", ".kan",
"D:/5-Other-Small/Kanban/Year-Season", "J:/5-Other-Small/Kanban/Year-Season",
"316940400000" "316940400000"
], ],
"problemMatcher": [] "problemMatcher": []
@ -530,8 +530,8 @@ internal static partial class Helper20240623 {
private static string? GetInferredCheckDirectory(string directory) { private static string? GetInferredCheckDirectory(string directory) {
string? result = null; string? result = null;
List<string> directoryNames = [];
DirectoryInfo directoryInfo; DirectoryInfo directoryInfo;
List<string> directoryNames = [];
string? checkDirectory = directory; string? checkDirectory = directory;
directoryNames.Add(Path.GetFileName(checkDirectory)); directoryNames.Add(Path.GetFileName(checkDirectory));
string pathRoot = Path.GetPathRoot(directory) ?? throw new Exception(); string pathRoot = Path.GetPathRoot(directory) ?? throw new Exception();
@ -540,7 +540,6 @@ internal static partial class Helper20240623 {
if (string.IsNullOrEmpty(checkDirectory) || checkDirectory == pathRoot) { if (string.IsNullOrEmpty(checkDirectory) || checkDirectory == pathRoot) {
break; break;
} }
directoryInfo = new(checkDirectory); directoryInfo = new(checkDirectory);
if (!directoryInfo.Exists) { if (!directoryInfo.Exists) {
directoryNames.Add(directoryInfo.Name); directoryNames.Add(directoryInfo.Name);
@ -548,11 +547,16 @@ internal static partial class Helper20240623 {
directoryNames.Reverse(); directoryNames.Reverse();
result = string.IsNullOrEmpty(directoryInfo.LinkTarget) ? checkDirectory : directoryInfo.LinkTarget; result = string.IsNullOrEmpty(directoryInfo.LinkTarget) ? checkDirectory : directoryInfo.LinkTarget;
for (int j = 0; j < directoryNames.Count; j++) { for (int j = 0; j < directoryNames.Count; j++) {
result = Path.GetDirectoryName(result) ?? throw new Exception(); result = Path.GetDirectoryName(result);
if (string.IsNullOrEmpty(result)) {
break;
} }
}
if (!string.IsNullOrEmpty(result)) {
foreach (string directoryName in directoryNames) { foreach (string directoryName in directoryNames) {
result = Path.Combine(result, directoryName); result = Path.Combine(result, directoryName);
} }
}
break; break;
} }
} }

View File

@ -155,7 +155,7 @@ internal static partial class Helper20250204 {
string searchPattern = "*.json"; string searchPattern = "*.json";
string fullPath = Path.GetFullPath(args[0]); string fullPath = Path.GetFullPath(args[0]);
string sourceDirectory = GetSourceDirectory(fullPath); string sourceDirectory = GetSourceDirectory(fullPath);
string rootDirectory = args.Count < 3 || args[2].Length < 16 ? "D:/5-Other-Small/Kanban-mestsa003/{}" : args[2]; string rootDirectory = args.Count < 3 || args[2].Length < 16 ? "J:/5-Other-Small/Kanban-mestsa003/{}" : args[2];
WriteTaskFile(sourceDirectory, rootDirectory); WriteTaskFile(sourceDirectory, rootDirectory);
string sourceDirectoryName = Path.GetFileName(sourceDirectory); string sourceDirectoryName = Path.GetFileName(sourceDirectory);
DirectoryInfo directoryInfo = new(Path.Combine(sourceDirectory, ".kanbn")); DirectoryInfo directoryInfo = new(Path.Combine(sourceDirectory, ".kanbn"));