Read directory contents to a table

This is probably right in front of me in the Help section, is there a way to read the file names within a directory on the host PC (i.e. - The PC running eggPlant that IS NOT the SUT) and place that list of names in a table to iterate through?

Thanks in advance.

  • Dan
put files("/path/to/folder/") into myFiles
repeat with each file of myfiles
	put the long name of file // outputs the full path to the file
end repeat

In the above example, each file is a file object with a number of properties that can be accessed. See Working with Files and [url=http://docs.testplant.com/?q=content/working-files-and-file-systems]Working with File Systems for more information.

[quote=“EggplantMatt”]

put files("/path/to/folder/") into myFiles
repeat with each file of myfiles
	put the long name of file // outputs the full path to the file
end repeat

In the above example, each file is a file object with a number of properties that can be accessed. See Working with Files and [url=http://docs.testplant.com/?q=content/working-files-and-file-systems]Working with File Systems for more information.[/quote]

This worked great, thanks! :mrgreen: