This will just make the tests very platform dependent which is pretty bad. I would rather have mock out the very core file system interaction things. Things like the platform can be easily parameterized.
Though, +1 for writing more non-mock tests.