internal static Doc FindFile(this Collection col, string name) { var files = col.FilesCollection(); files.CreateIndex(new Index { { "filename", Mongo.Dir.Asc } }, true); return files.FindOne(new Doc { { "filename", name } }); }