Stop MetaData coming up in FileInfo.

Gday.

I’m trying to find files with the code below,
but for every image found it finds its metadata file…
(As the metafiles have .jpg at the end of the file).

Can I stop it from looking for the MetaData?

imagedir = new DirectoryInfo(_ImageFileLocation);
imageinfo = imagedir.GetFiles("*.jpg*");
for (file in imageinfo) print (file);

Thanks,Tim.

It’s all good I found the problem.

Changed

`imageinfo = imagedir.GetFiles("*.jpg*");`

To

`imageinfo = imagedir.GetFiles("*.jpg");`