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