Config split error
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3409015. -->
Reported by: [batigolix](https://www.drupal.org/user/22175)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>I am using config split in the Collection mode instead of the Folder mode (as shown in attached screenshot)</p>
<p>If I use config_auto_export and I save some configuration then I get an error message.</p>
<blockquote><p>The website encountered an unexpected error. Please try again later.</p>
<p>Drupal\Core\File\Exception\NotRegularDirectoryException: is not a directory. in Drupal\Core\File\FileSystem->scanDirectory() (line 668 of core/lib/Drupal/Core/File/FileSystem.php).<br>
Drupal\config_auto_export\ConfigSubscriber->readConfigSplitFiles() (Line: 219)<br>
Drupal\config_auto_export\ConfigSubscriber->findInConfigSplit('system.site') (Line: 236)<br>
Drupal\config_auto_export\ConfigSubscriber->onConfigSave(Object, 'config.save', Object)<br>
call_user_func(Array, Object, 'config.save', Object) (Line: 111)<br>
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'config.save') (Line: 229)<br>
Drupal\Core\Config\Config->save() (Line: 208)<br>
Drupal\system\Form\SiteInformationForm->submitForm(Array, Object)</p></blockquote>
<p>This is caused, I suppose, by the readConfigSplitFiles method that does not take into account config slit Collections.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>- Configure a config split to use the Collection mode<br>
- Enable config_auto_export<br>
- Submit a config form e.g. /admin/config/system/site-information</p>
<p>I have too little knowledge of the config split module to propose a solution.</p>
<p>Many thanks for the great module.</p>
> Related issue: [Issue #3450341](https://www.drupal.org/node/3450341)
issue