Allowlist_external_dirs vs whitelist_external_dirs

Today when I checked the logs, I saw HA suggests changing whitelist_ to allowlist_

However, after such change, when my trigger script is run, HA cannot capture image from the camera and put it into the folder.

After changing back to whitelist, it becomes normal again.

Why is that?