| 1688 | } |
| 1689 | |
| 1690 | static gboolean |
| 1691 | file_has_allowed_extension (GFile *file, hb_list_t *exclude_extensions) |
| 1692 | { |
| 1693 | const char *filename = g_file_peek_path(file); |
| 1694 | |
| 1695 | for (int i = 0; i < hb_list_count(exclude_extensions); i++) |
| 1696 | { |
| 1697 | if (hb_str_ends_with(filename, hb_list_item(exclude_extensions, i))) |
| 1698 | { |
| 1699 | g_debug("Excluded file %s", filename); |
| 1700 | return FALSE; |
| 1701 | } |
| 1702 | } |
| 1703 | g_debug("Found file %s", filename); |
| 1704 | return TRUE; |
| 1705 | } |
| 1706 | |
| 1707 | static void |
| 1708 | scan_directory (GFile *dir, GListStore *file_list, gboolean recursive) |
no test coverage detected