Lua:getFileList
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" }