diff --git a/OsmAnd/src/net/osmand/plus/activities/LocalIndexesActivity.java b/OsmAnd/src/net/osmand/plus/activities/LocalIndexesActivity.java index 5bd1a8a31a..328b6a58e8 100644 --- a/OsmAnd/src/net/osmand/plus/activities/LocalIndexesActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/LocalIndexesActivity.java @@ -228,6 +228,9 @@ public class LocalIndexesActivity extends OsmandExpandableListActivity { if (dest.exists()) { AccessibleToast.makeText(LocalIndexesActivity.this, R.string.file_with_name_already_exists, Toast.LENGTH_LONG).show(); } else { + if(!f.getParentFile().exists()) { + f.getParentFile().mkdirs(); + } if(f.renameTo(dest)){ reloadIndexes(); } else {