Chapter 13 exercises

For review
What if file actually contains a directory portion? (e.g `test/foo.txt`) 
Does this work?