.NET 4.0 has got a more efficient method for this:
Directory.EnumerateFiles(Server.MapPath("~/Content/images/thumbs"));
You get an IEnumerable on which you can iterate on the view:
@model IEnumerable
@foreach (var fullPath in Model)
{
var fileName = Path.GetFileName(fullPath);
- @fileName
}