Direct object is D. A NOUN, PRONOUN, OR WORD GROUP THAT RECEIVES THE ACTION OF THE VERB.
Direct object follows a transitive verb (action verb) not a linking verb. It is always placed after the verb not before it. It receives the action not modifies the action verb.
Personification because it's saying the river knows as if it is a person or higher being.