In some cases flags for the file/dir are not set, but we can determine the type based on the size.
E.g. /vol/external01 can be opened via FSOpenDir but FSGetStat (and friends) don't set FS_STAT_DIRECTORY. In other cases (e.g. reading files from discs) there a similar problem where the filesize is not, but not FS_STAT_FILE
In some cases flags for the file/dir are not set, but we can determine the type based on the size. E.g.
/vol/external01
can be opened via FSOpenDir but FSGetStat (and friends) don't setFS_STAT_DIRECTORY
. In other cases (e.g. reading files from discs) there a similar problem where the filesize is not, but notFS_STAT_FILE