Junctions, hard links, symlinks in Windows are not properly restored

Please describe what you are doing to trigger the bug:
Restoring in Windows 10 with Duplicacy command line version 2.2.1.

Please describe what you expect to happen (but doesn’t):
Hard links, junctions and symlinks are expected to be preserved.

Please describe what actually happens (the wrong behaviour):

  • Junctions: Restored as SYMLINKD (may create unexpected behavior upon network access)
  • SYMLINKD Restored as a SYMLINK (breaking all functionality)
  • SYMLINK: Restored as SYMLINK (as expected)
  • Hard links: Restored as indepedent files. (ref. Hard links not properly restored?)