List of files

filelist
filelist path
filelist path mask

Returns list of files in the current directory, or in path if specified. Search mask can be optionally provided.

Example:

print filelist
print (filelist "|| "|*.txt|)

Output:

[C:\file1.jpg C:\doc1.txt C:\doc2.txt]
[C:\doc1.txt C:\doc2.txt]

See also:

Table of Content