How to get a files names from directory?

Hi,
How I get just the file names that with the extension ‘.edf’ from a directory in robot framework?

${Path} = Set Variable C:/Data_Batchs_EDF
@{files}= List Files In Directory ${Path}

This code gives all the files. but I need just the files with the extension ‘.edf’

Hi Gal,

Use the pattern option for List Files In Directory, there is an example of doing this in the documentation for List Directory

@{files}=    List Files In Directory    ${Path}   *.edf

Dave.

1 Like