K 10 svn:author V 6 kevans K 8 svn:date V 27 2021-02-03T06:59:28.425246Z K 7 svn:log V 557 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. (cherry picked from commit e25ee296c919d6567aa76058a7049eac974797fb) Git Hash: 32b391d4a99c8c3a52ea1d2c0c82ee3208b77a19 Git Author: kevans@FreeBSD.org END