Fix for Extension folder not created #8024

Enable the creation of nested directories.