to list all of the subdirectories.
— List of files (path and filename).
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