Zip only went 1000 days...

Added Create Note Files
Changed to Path.Combine
This commit is contained in:
2022-05-26 11:15:45 -07:00
parent 0987ee8b80
commit 81472165f7
7 changed files with 66 additions and 14 deletions

View File

@ -65,7 +65,10 @@ internal static class HelperSaveOrCopyContents
long now = DateTime.Now.Ticks;
StringBuilder data = new();
string[] dataCollection;
string filePathAndName = string.Concat(Path.GetDirectoryName(argsZero), @"\", fileName, ".txt");
string? parentDirectory = Path.GetDirectoryName(argsZero);
if (string.IsNullOrEmpty(parentDirectory))
throw new Exception();
string filePathAndName = Path.Combine(parentDirectory, $"{fileName}.txt");
if (alongSideTopDirectoryOnly)
File.WriteAllText(filePathAndName, string.Empty);
else if (alongSideAllDirectories)