I know how to get file attributes, but I got problem.
DIRECTORY = 16 but ARCHIVE = 32, so if I check it like if attribute > 16 then directory, I would get false directories because 32 > 16
But directory can also have other attributes such as hidden/system/readonly/archive and so on, so check like if attribute == 16 would also fail 90% of times.
Is there way (that doesn't fail or show false directories) to check wether file is directory?