@kolla
how do I know that a file is a hard link in the first place?
AmigaOS API is a bit screwed here.
The only dos.library level solution is to ExNext/ExAll the parent directory.
For softlinks you can also ACTION_LOCATE_OBJECT the specific name. If you get an error and Result2 is ERROR_IS_SOFT_LINK then it is a softlink. If the packet succeeds you must free the lock with ACTION_FREE_LOCK.
As for the dir and list commands, they just don't support links.