If gen dir doesn't exist, it's created with 0600 perms, thus not listable. When the web server tried to list the dir, it got a permission denied err. That was not correctly checked.
This fixes the default perm for gen dir and checks the list dir error.
If
gen
dir doesn't exist, it's created with 0600 perms, thus not listable. When the web server tried to list the dir, it got a permission denied err. That was not correctly checked.This fixes the default perm for gen dir and checks the list dir error.