Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
sLill committed Oct 20, 2023
1 parent 04ddfef commit 304364e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WindowsGrep/WindowsGrep/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private static void Initialize(string[] args)
private static string GetCompressedPath(string fullPath)
{
var directories = fullPath.Split(Path.DirectorySeparatorChar);
return directories.Length > 2 ? @"..\" + directories[directories.Length - 2] + @"\" + directories[directories.Length - 1] : fullPath;
return directories.Length > 1 ? @"..\" + directories[directories.Length - 1] : fullPath;
}
#endregion Methods..
}
Expand Down

0 comments on commit 304364e

Please sign in to comment.