Skip to content

Commit c0c94fd

Browse files
committed
Get full path for each input for programs
1 parent af43748 commit c0c94fd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ExtractionTool/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ static void Main(string[] args)
4242
/// <param name="includeDebug">Enable including debug information</param>
4343
private static void ExtractPath(string path, string outputDirectory, bool includeDebug)
4444
{
45+
// Normalize by getting the full path
46+
path = Path.GetFullPath(path);
4547
Console.WriteLine($"Checking possible path: {path}");
4648

4749
// Check if the file or directory exists

ProtectionScan/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ static void Main(string[] args)
5353
/// <param name="path">File or directory path</param>
5454
private static void GetAndWriteProtections(Scanner scanner, string path)
5555
{
56+
// Normalize by getting the full path
57+
path = Path.GetFullPath(path);
58+
5659
// An invalid path can't be scanned
5760
if (!Directory.Exists(path) && !File.Exists(path))
5861
{

0 commit comments

Comments
 (0)