The test has its own tmp directory which is cleared between runs, and hence is guaranteed to be empty.