Lua primitives: load_directory()
The load_directory function will attempt to load and execute any files matching the pattern *.lua inside the given directory.
This function is invoked in the default cofiguration file to load files from beneath ~/.lumail.d if that directory exists.
Here is that usage:
if ( is_directory( os.getenv( "HOME" ) .. "/.lumail.d" ) ) then load_directory( os.getenv( "HOME" ) .. "/.lumail.d" ) end
This function has been available since version 0.10.
See also is_directory.