to list all of the files.
— List of subdirectory paths.
CreateDirectory PathCombine(["testdir", "subdir1"])
CreateDirectory PathCombine(["testdir", "subdir2"])
WriteFileText PathCombine(["testdir", "file1"]), "111"
WriteFileText PathCombine(["testdir", "file2"]), "222"
WriteFileText PathCombine(["testdir", "file3"]), "333"
print "Num dirs: "; Len(ListDirectories("testdir"))
print "Num files: "; Len(ListFiles("testdir"))
DeleteDirectory "testdir", true