HOWTO: Get Application Specific Directory -ASD (where one exists) without Extensions

A quick answer. Right now your approach will work. Once App Inventor starts targeting Android SDK 30 (July/August), then you will not be able to save to the sdcard location.

See this discussion:

for more details....