Canvas image save problem after update

After this update, I can’t save my canvas image on device.
This code could make new folder and save canvas image.
I usually use this code for save canvas image but this code doesn’t work anymore.
Anyone has any suggestions for me?
(I added some texts on picture for explaining code)

This post was flagged by the community and is temporarily hidden.