If the user doesn't have the permission to create a directory we now log an error. Fixes #6967 (cherry picked from commit ee03538a)