Kyle Evans e25ee296c9 stand: lua: enhance lfs.dir() to speed up kernels_autodetect
This eliminates a lot of stat() calls that happen when lualoader renders the
menu with the default settings, and greatly speeds up rendering on my
laptop.

ftype is nil if loader/loader.efi hasn't been updated yet, falling back to
lfs.attributes() to test.

This is technically incompatible with lfs, but not in a particularly
terrible way.

Reviewed-by:	cem
MFC-after:	4 days
Differential Revision:	https://reviews.freebsd.org/D27542
2021-01-29 12:47:29 -06:00
..
2018-04-27 22:15:18 +00:00
2021-01-07 21:15:26 +01:00
2019-02-26 06:22:10 +00:00
2021-01-13 23:56:18 -06:00
2020-09-08 23:22:11 +00:00
2021-01-14 17:33:05 -08:00
2019-02-26 06:22:10 +00:00
2021-01-04 16:57:50 +00:00
2021-01-03 20:45:37 +02:00
2020-01-23 10:40:34 +00:00
2021-01-02 21:41:36 +02:00