apphelp: attempt to port arioscop's SdbGetFileAttributes