far.RecursiveSearch

LuaFAR 3

far.RecursiveSearch


far.RecursiveSearch (InitDir, Mask, UserFunc [, Flags [, ...]])

Parameters:
  InitDir:  string
  Mask:     string
  UserFunc: function
  Flags:    flags
  ...:      additional arguments, any Lua values

Returns:
  In case the search was stopped by UserFunc:  all values returned by UserFunc.
  In case no more files left:                  nothing.
  In case of error in UserFunc:                nothing.

Description:
  On every file found, UserFunc is called with the following arguments passed to it:
      (1) a tPluginPanelItem table
      (2) the full pathname of the found file
      (3...) additional arguments (if any) that were passed to far.RecursiveSearch

  If the 1-st return value of UserFunc is neither false nor nil then the search
  is stopped.

Far API used:
  FarRecursiveSearch