Let $B$ be a topological space. Consider the evaluation at zero of paths in $B$. This is a continuous map $\operatorname{ev}_0:B^I\to B$ where the domain carries  the compact-open topology.

For which spaces $B$ does pulling back along $\operatorname{ev}_0:B^I\to B$ have a right adjoint? Is local connectedness enough?