I verified this works ad-hoc a while ago because it was hard to test with mocked file system, but now that I have an easy way to test with a real file system (using temp directory) I will write a unit test to verify.