fakefs

File system faker to make testing stuff that depends on the FS easier.

Personally, I tend to dependency-inject some IO class when I need to test file stuff.