Added folder permissions to diagnostics