---
name: "mongoc_gridfs_file_list_t"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_gridfs_file_list_t"
---

# mongoc\_gridfs\_file\_list\_t(3)

## SYNOPSIS

```
#include <mongoc/mongoc.h>
typedef struct _mongoc_gridfs_file_list_t mongoc_gridfs_file_list_t;
```

## DESCRIPTION

**mongoc\_gridfs\_file\_list\_t** provides a gridfs file list abstraction.  It provides iteration and basic marshalling on top of a regular *mongoc\_collection\_find\_with\_opts()* style query. In interface, it's styled after *mongoc\_cursor\_t*.

## EXAMPLE

```
mongoc_gridfs_file_list_t *list;
mongoc_gridfs_file_t *file;
list = mongoc_gridfs_find (gridfs, query);
while ((file = mongoc_gridfs_file_list_next (list))) {
   do_something (file);
   mongoc_gridfs_file_destroy (file);
}
mongoc_gridfs_file_list_destroy (list);
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
