Cleanup File I/O tests

* Makes callback arguments optional on some fs and native menu apis
* Adds support to permenantly delete folders
* Fixes #4272