You can use the same approach to get a list of files in a folder on the SUT, but only if the SUT's file system is mounted locally across the network. Otherwise you'll have to script the actions that a user would take to traverse the SUT file system.