"file vs dir" determining seems to be complete