File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ static void Main(string[] args)
42
42
/// <param name="includeDebug">Enable including debug information</param>
43
43
private static void ExtractPath ( string path , string outputDirectory , bool includeDebug )
44
44
{
45
+ // Normalize by getting the full path
46
+ path = Path . GetFullPath ( path ) ;
45
47
Console . WriteLine ( $ "Checking possible path: { path } ") ;
46
48
47
49
// Check if the file or directory exists
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ static void Main(string[] args)
53
53
/// <param name="path">File or directory path</param>
54
54
private static void GetAndWriteProtections ( Scanner scanner , string path )
55
55
{
56
+ // Normalize by getting the full path
57
+ path = Path . GetFullPath ( path ) ;
58
+
56
59
// An invalid path can't be scanned
57
60
if ( ! Directory . Exists ( path ) && ! File . Exists ( path ) )
58
61
{
You can’t perform that action at this time.
0 commit comments