Documentation
Configuration / filesystem.exclude_directory_pattern
Exclude one of more directories matching a regual expression.
$moxieManagerConfig['filesystem.exclude_directory_pattern'] = '/^(mcith|secret)$/i';
<add key="filesystem.exclude_directory_pattern" value="/^(mcith|secret)$/i" />