Lumail - The console email client


Lua primitives: load_directory()

NOTE: Lumail-legacy has been superseded by Lumail 2.x, which has a wholly unified Lua API.

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

Availability

This function has been available since version 0.10.

See Also

See also is_directory.