We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b7792e commit e7b2546Copy full SHA for e7b2546
1 file changed
Source/HedgeModManager/LinuxCompatibility.cs
@@ -46,10 +46,12 @@ await Task.Run(() =>
46
var fileinfo = new FileInfo(destinationPath);
47
if (fileinfo.Exists)
48
{
49
+ // Remove slash from the end
50
+ destinationPath = destinationPath[..^1];
51
if (fileinfo.Attributes.HasFlag(FileAttributes.ReparsePoint))
52
53
Logger.Debug($"Symlink detected, unlinking \"{destinationPath}\"");
- Directory.Delete(destinationPath);
54
+ File.Delete(destinationPath);
55
}
56
else
57
0 commit comments