Add hidden flag to control when hidden files are ignored#601
Conversation
| &mut self, | ||
| tpl_extension: &str, | ||
| dir_path: P, | ||
| hidden: bool, |
There was a problem hiding this comment.
Can we make a DirectorySourceOptions struct other potential options?
There was a problem hiding this comment.
I can do that, @sunng87 !
Do you want any options available in the struct other than hidden right now?
I don't know if you ever want temporary files to be pulled in when working with a template directory, but they're checked in the same place, so I can add a temporary option too if you want that.
There was a problem hiding this comment.
This commit is my best guess as to how this should be handled.
…ons for template directories
caf7232 to
ee83fd0
Compare
|
Thank you very much @yhakbar . The patch is almost LGTM. There is a minor lint issue to resolve. |
Whoops! Should be good now. |
|
rustfmt is broken again, you can fix it and verify from your local code base |
Formatted. |
|
@yhakbar Thank you! |
Would you be willing to accept this adjustment to allow for an additional
hiddenparameter to be passed intoregister_templates_directoryto control whether hidden files are ignored?This would allow for template directories that contained hidden files which should be registered.