Skip to content

Commit e7b2546

Browse files
Try unlink 2
1 parent 6b7792e commit e7b2546

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Source/HedgeModManager/LinuxCompatibility.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ await Task.Run(() =>
4646
var fileinfo = new FileInfo(destinationPath);
4747
if (fileinfo.Exists)
4848
{
49+
// Remove slash from the end
50+
destinationPath = destinationPath[..^1];
4951
if (fileinfo.Attributes.HasFlag(FileAttributes.ReparsePoint))
5052
{
5153
Logger.Debug($"Symlink detected, unlinking \"{destinationPath}\"");
52-
Directory.Delete(destinationPath);
54+
File.Delete(destinationPath);
5355
}
5456
else
5557
{

0 commit comments

Comments
 (0)