" * statbuf->st_mode will be 0 or will have S_IFDIR set if the object is a directory." . . . .