79374621

Date: 2025-01-21 13:42:26
Score: 0.5
Natty:
Report link

The issue lies in how the path is being constructed. The Path.Combine method already handles path separators, so you don't need to add an extra leading backslash ().

var dirLoc = Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location);
var path = Path.Combine(dirLoc!, "files", "file.csv");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Chameera