List of files in a directory

How do I get a list of files in a directory via a flow service?
pub.file:getFile seems to be file specific

I need to get a list of files from a directory and loop through that list

There’s a sample java service (sample.IO.utils:listFilesInDirectory) in the WmSamples package. There’s another one called listFiles in PSUtilities if you have that package (or access to Advantage to download it). There are also a couple of services in the pub.client.ftp folder (ls and dir) if you want to go that route.

Tim