How can I add different validation of a document extension, if I´m using GetFiles?

@dulce.santacruz
Here’s another way to achieve that :smile:
Directory.GetFiles(“C:\path”, “.”, SearchOption.AllDirectories)
.Where(file => new string { “.jpg”, “.gif”, “.png” }
.Contains(Path.GetExtension(file)))
.ToList();

Let me know if that works :slight_smile: