Get full path for each input for programs

This commit is contained in:
Matt Nadareski
2025-06-30 07:28:33 -04:00
parent af43748766
commit c0c94fd78d
2 changed files with 5 additions and 0 deletions

View File

@@ -42,6 +42,8 @@ namespace ExtractionTool
/// <param name="includeDebug">Enable including debug information</param>
private static void ExtractPath(string path, string outputDirectory, bool includeDebug)
{
// Normalize by getting the full path
path = Path.GetFullPath(path);
Console.WriteLine($"Checking possible path: {path}");
// Check if the file or directory exists

View File

@@ -53,6 +53,9 @@ namespace ProtectionScan
/// <param name="path">File or directory path</param>
private static void GetAndWriteProtections(Scanner scanner, string path)
{
// Normalize by getting the full path
path = Path.GetFullPath(path);
// An invalid path can't be scanned
if (!Directory.Exists(path) && !File.Exists(path))
{