# Table$list\_files

### Table$<mark style="color:purple;">list\_files</mark>(*max\_results=NULL, file\_id\_variable=NULL*) → list([File](https://docs.redivis.com/api/client-libraries/redivis-r/reference/file))

Returns a list of [File instances](https://docs.redivis.com/api/client-libraries/redivis-r/reference/file) associated with a file index table. Only relevant for tables that contain at least one variable with a file id.

### **Parameters:**

**`max_results` :&#x20;*****int, default NULL***\
If specified, will only download up to max\_results files

**`file_id_variable` :&#x20;*****str, default NULL***\
The variable in the table containing file ids. Only required if the table contains more than one fileId variable, otherwise the file\_id\_variable will automatically be determined

### **Returns:**&#x20;

**list(**[**File**](https://docs.redivis.com/api/client-libraries/redivis-r/reference/file)**)**
