Lua:getFileList

From Cheat Engine
Revision as of 06:28, 21 August 2020 by Ajanuw (talk | contribs) (Created page with "getFileList(Path:string, searchMask:string OPTIONAL, SearchSubDirs: boolean OPTIONAL, DirAttrib: integer OPTIONAL): Returns an indexed table with filenames <pre> r = getFileLi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getFileList(Path:string, searchMask:string OPTIONAL, SearchSubDirs: boolean OPTIONAL, DirAttrib: integer OPTIONAL): Returns an indexed table with filenames

r = getFileList("C:\\CE\\autorun", "*.DLL", true)
require 'pl.pretty'.dump(r)

Print result:

{
  "C:\\CE\\autorun\\dlls\\MonoDataCollector32.dll",
  "C:\\CE\\autorun\\dlls\\MonoDataCollector64.dll",
  "C:\\CE\\autorun\\dlls\\32\\CEJVMTI.dll",
  "C:\\CE\\autorun\\dlls\\64\\CEJVMTI.dll"
}