github.com/caarlos0/testfs (go): Package testfs provides a simple fs.FS which is contained in a test (using testing.TB's TempDir) and with a few helper methods.  The temporary FS is auto-cleaned once the test and all its children finish.
Keywords: filesystem|golang|testing