Difference between revisions of "Lua:getDirectoryList"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "r = getDirectoryList("C:\\CE\\autorun", true) require 'pl.pretty'.dump(r) { "C:\\CE\\autorun\\ce-plugins", "C:\\CE\\autorun\\ceshare", "C:\\CE\\autorun\\dlls", "C:\\...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
r = getDirectoryList("C:\\CE\\autorun", true)  
+
getDirectoryList(Path:string, SearchSubDirs: boolean OPTIONAL): Returns an indexed table with directory names
 +
<pre>
 +
r = getDirectoryList("C:\\CE\\autorun", true)
 
require 'pl.pretty'.dump(r)
 
require 'pl.pretty'.dump(r)
 
+
</pre>
 +
Print result:
 +
<pre>
 
{
 
{
 
   "C:\\CE\\autorun\\ce-plugins",
 
   "C:\\CE\\autorun\\ce-plugins",
Line 23: Line 27:
 
   "C:\\CE\\autorun\\dlls\\src\\Mono\\MonoDataCollector"
 
   "C:\\CE\\autorun\\dlls\\src\\Mono\\MonoDataCollector"
 
}
 
}
 +
</pre>

Latest revision as of 06:27, 21 August 2020

getDirectoryList(Path:string, SearchSubDirs: boolean OPTIONAL): Returns an indexed table with directory names

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

Print result:

{
  "C:\\CE\\autorun\\ce-plugins",
  "C:\\CE\\autorun\\ceshare",
  "C:\\CE\\autorun\\dlls",
  "C:\\CE\\autorun\\forms",
  "C:\\CE\\autorun\\images",
  "C:\\CE\\autorun\\xml",
  "C:\\CE\\autorun\\ce-plugins\\.git",
  "C:\\CE\\autorun\\ce-plugins\\images",
  "C:\\CE\\autorun\\ceshare\\forms",
  "C:\\CE\\autorun\\ceshare\\images",
  "C:\\CE\\autorun\\dlls\\32",
  "C:\\CE\\autorun\\dlls\\64",
  "C:\\CE\\autorun\\dlls\\src",
  "C:\\CE\\autorun\\dlls\\src\\Common",
  "C:\\CE\\autorun\\dlls\\src\\Java",
  "C:\\CE\\autorun\\dlls\\src\\Mono",
  "C:\\CE\\autorun\\dlls\\src\\Java\\CEJVMTI",
  "C:\\CE\\autorun\\dlls\\src\\Java\\CEJVMTI\\CEJVMTI",
  "C:\\CE\\autorun\\dlls\\src\\Mono\\MonoDataCollector"
}