The cleanup would still work in a temporary directory. Also, if you store the temporary directory you can remove it in tearDown. As it's a temporary directory, a user can knowingly and safely remove any that accumulate over time. Having an override would allow a user to have more control if they did not like this behaviour.