Retain containing path for each document.

We may want to do this for each folder as well.