Difference between revisions of "Lua:getFileList"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "getFileList(Path:string, searchMask:string OPTIONAL, SearchSubDirs: boolean OPTIONAL, DirAttrib: integer OPTIONAL): Returns an indexed table with filenames <pre> r = getFileLi...")
 
(No difference)

Latest revision as of 06:28, 21 August 2020

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"
}