Add support for readdir / readdirSync