On Sat, Sep 5, 2020 at 2:13 AM Andres Freund <andres@anarazel.de> wrote:
> However, it looks like we might be missing a further opportunity > here... Doesn't Windows already give us the flags we need in the > dwFileAttributes member of the WIN32_FIND_DATA object that the > Find{First,Next}File() functions populate?
That'd be better...
At first I did not see how to get DT_LNK directly, but it is possible without additional calls, so please find attached a version with that logic.
This version also drops the enum, defining just the macros.