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-&gt;scanDirectory() (line 668 of core/lib/Drupal/Core/File/FileSystem.php).<br> Drupal\config_auto_export\ConfigSubscriber-&gt;readConfigSplitFiles() (Line: 219)<br> Drupal\config_auto_export\ConfigSubscriber-&gt;findInConfigSplit('system.site') (Line: 236)<br> Drupal\config_auto_export\ConfigSubscriber-&gt;onConfigSave(Object, 'config.save', Object)<br> call_user_func(Array, Object, 'config.save', Object) (Line: 111)<br> Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher-&gt;dispatch(Object, 'config.save') (Line: 229)<br> Drupal\Core\Config\Config-&gt;save() (Line: 208)<br> Drupal\system\Form\SiteInformationForm-&gt;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