We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21c902f commit 6b7792eCopy full SHA for 6b7792e
1 file changed
Source/HedgeModManager/LinuxCompatibility.cs
@@ -43,14 +43,13 @@ await Task.Run(() =>
43
44
if (entry.FullName.EndsWith('/'))
45
{
46
- // Untested, tests from HMM 7 to 8 is needed
47
- if (File.Exists(destinationPath))
+ var fileinfo = new FileInfo(destinationPath);
+ if (fileinfo.Exists)
48
49
- var attributes = new FileInfo(destinationPath).Attributes;
50
- if (attributes.HasFlag(FileAttributes.ReparsePoint))
+ if (fileinfo.Attributes.HasFlag(FileAttributes.ReparsePoint))
51
52
Logger.Debug($"Symlink detected, unlinking \"{destinationPath}\"");
53
- File.Delete(destinationPath);
+ Directory.Delete(destinationPath);
54
}
55
else
56
0 commit comments