Make sure AppInventorBinaries exists
This directory is used to store images fetched from CloudDB. We need
to make sure it exists before we use it!
@@ -460,6 +460,11 @@ public class JsonUtil {
///////////////////////////////////////////////////////////////////////////////
File destDirectory = new File(Uri.parse(fullDirName).getPath());
+ if (!destDirectory.isDirectory()) {
+ if (!destDirectory.mkdirs()) {
+ throw new YailRuntimeError("Unable to create " + destDirectory, "Write");
+ }
+ }
final Synchronizer<Boolean> result = new Synchronizer<>();
File dest;
try {
