Windows. Compatibility with Delphi when working with links
Original Reporter info from Mantis: SergeAnvarov @SergeAnvarov
-
Reporter name: Serge Anvarov
Original Reporter info from Mantis: SergeAnvarov @SergeAnvarov
- Reporter name: Serge Anvarov
Description:
In Delphi, for FileExists, DirectoryExists, there is the FollowLink parameter. In FPC this is not. Therefore, I propose a patch that adds a function with an explicit FollowLink parameter to the release for Windows.
Their implementation is based on the new added function GetLinkTargetName(const LinkSourceName: UnicodeString; out LinkTargetName: UnicodeString): Boolean;
Also, the patch contains a fix for the FileAge function with the FollowLink parameter. In fact, in the implementation for Windows it is ignored. In addition to the function FileAge with one parameter added protection from wildcards, as it is done for a newer function.
Mantis conversion info:
- Mantis ID: 32370
- OS: Windows
- Platform: Windows
- Version: 3.1.1
- Fixed in version: 3.3.1
- Fixed in revision: 39670 (#b9721003),39671 (#e110d901),43112 (#2a38d07d),43113 (#f46b8539)
- Monitored by: » @sergey.bychkow (Sergey Bychkow)