Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
46590d48cd |
14
.vscode/launch.json
vendored
14
.vscode/launch.json
vendored
@ -11,6 +11,20 @@
|
||||
"preLaunchTask": "Build",
|
||||
"program": "${workspaceFolder}/bin/Debug/net8.0/win-x64/File-Folder-Helper.dll",
|
||||
"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",
|
||||
"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",
|
||||
|
@ -243,7 +243,7 @@ internal static partial class Helper20240623 {
|
||||
"-_[,](",
|
||||
"##_Done",
|
||||
".kan",
|
||||
"D:/5-Other-Small/Kanban/Year-Season",
|
||||
"J:/5-Other-Small/Kanban/Year-Season",
|
||||
"316940400000"
|
||||
],
|
||||
"problemMatcher": []
|
||||
@ -530,8 +530,8 @@ internal static partial class Helper20240623 {
|
||||
|
||||
private static string? GetInferredCheckDirectory(string directory) {
|
||||
string? result = null;
|
||||
List<string> directoryNames = [];
|
||||
DirectoryInfo directoryInfo;
|
||||
List<string> directoryNames = [];
|
||||
string? checkDirectory = directory;
|
||||
directoryNames.Add(Path.GetFileName(checkDirectory));
|
||||
string pathRoot = Path.GetPathRoot(directory) ?? throw new Exception();
|
||||
@ -540,7 +540,6 @@ internal static partial class Helper20240623 {
|
||||
if (string.IsNullOrEmpty(checkDirectory) || checkDirectory == pathRoot) {
|
||||
break;
|
||||
}
|
||||
|
||||
directoryInfo = new(checkDirectory);
|
||||
if (!directoryInfo.Exists) {
|
||||
directoryNames.Add(directoryInfo.Name);
|
||||
@ -548,10 +547,15 @@ internal static partial class Helper20240623 {
|
||||
directoryNames.Reverse();
|
||||
result = string.IsNullOrEmpty(directoryInfo.LinkTarget) ? checkDirectory : directoryInfo.LinkTarget;
|
||||
for (int j = 0; j < directoryNames.Count; j++) {
|
||||
result = Path.GetDirectoryName(result) ?? throw new Exception();
|
||||
result = Path.GetDirectoryName(result);
|
||||
if (string.IsNullOrEmpty(result)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
foreach (string directoryName in directoryNames) {
|
||||
result = Path.Combine(result, directoryName);
|
||||
if (!string.IsNullOrEmpty(result)) {
|
||||
foreach (string directoryName in directoryNames) {
|
||||
result = Path.Combine(result, directoryName);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -155,7 +155,7 @@ internal static partial class Helper20250204 {
|
||||
string searchPattern = "*.json";
|
||||
string fullPath = Path.GetFullPath(args[0]);
|
||||
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);
|
||||
string sourceDirectoryName = Path.GetFileName(sourceDirectory);
|
||||
DirectoryInfo directoryInfo = new(Path.Combine(sourceDirectory, ".kanbn"));
|
||||
|
Reference in New Issue
Block a user