mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-19 04:12:41 +02:00
add hide_dot_files to Finder init
add 'set Finder.hideDotFiles to config.hide_dot_files' to Finder init in app/src/Factories/FinderFactory.php. Before, it was TRUE by Finder-default.
This commit is contained in:
committed by
GitHub
parent
774da418fd
commit
2bd44229d5
@@ -42,6 +42,7 @@ class FinderFactory
|
||||
{
|
||||
$finder = Finder::create()->followLinks();
|
||||
$finder->ignoreVCS($this->config->get('hide_vcs_files'));
|
||||
$finder->ignoreDotFiles($this->config->get('hide_dot_files'));
|
||||
|
||||
if ($this->hiddenFiles->isNotEmpty()) {
|
||||
$finder->filter(function (SplFileInfo $file): bool {
|
||||
|
Reference in New Issue
Block a user