| Top |  |  |  |  | 
GList * thunar_io_scan_directory (ThunarJob *job,GFile *file,GFileQueryInfoFlags flags,gboolean recursively,gboolean unlinking,gboolean return_thunar_files,guint *n_files_max,GError **error);
Scans the passed folder for files and returns them as a GList
| job | a ThunarJob instance | |
| file | The folder to scan | |
| flags | 
 | |
| recursively | Wheather as well subfolders should be scanned | |
| unlinking | ??? | |
| return_thunar_files | TRUE in order to return the result as a list of ThunarFile's, FALSE to return a list of GFile's | |
| n_files_max | Maximum number of files to scan, NULL for unlimited | |
| error | Will be se on any error |