discourse/lib/theme_store
David Taylor 93c96cf6fa
DEV: Filter files included by theme DirectoryImporter (#23842)
To match discourse_theme CLI behavior, we should skip hidden files/directories (e.g. `.git`), and two regular directories: `node_modules/` and `src/`.

Without these excludes, it's very easy for a theme to hit the file count limit. e.g. when trying this with discourse-kanban-board, I got:

> The number of files (20366) in the theme has exceeded the maximum allowed number of files (1024)
2023-10-09 12:03:02 +01:00
..
base_importer.rb SECURITY: Add limits for themes and theme assets 2023-09-12 15:31:31 -03:00
directory_importer.rb DEV: Filter files included by theme DirectoryImporter (#23842) 2023-10-09 12:03:02 +01:00
git_importer.rb
zip_exporter.rb
zip_importer.rb SECURITY: Add limits for themes and theme assets 2023-09-12 15:31:31 -03:00