trigger E_USER_ERROR when opendir fails