I’m reading various files and directories with the FindFirst / FindNext functions as described here.
The only problem I have, is that I can’t figure out if the file is a symlink. In the file attributes there is no constant or flag and I can’t find a function for testing for symlinks.
Your original idea of using findfirst is best, since it is a portable solution (windows has symlinks too nowadays). The only thing to adapt is to request symlink checking in the attributes you pass to findfirst: