From 9399762ed92113fba65af854bb55cc3e7687c119 Mon Sep 17 00:00:00 2001 From: anrp Date: Mon, 1 May 2017 05:09:15 -0700 Subject: [PATCH] Fix missing path separator in folder copy target (#883) * Fix missing path separator in folder copy target * Update to use direct File constructor --- .../com/nutomic/syncthingandroid/activities/ShareActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/activities/ShareActivity.java b/src/main/java/com/nutomic/syncthingandroid/activities/ShareActivity.java index 90cd4a87..ac5ec64c 100644 --- a/src/main/java/com/nutomic/syncthingandroid/activities/ShareActivity.java +++ b/src/main/java/com/nutomic/syncthingandroid/activities/ShareActivity.java @@ -228,9 +228,8 @@ public class ShareActivity extends SyncthingActivity boolean isError = false; for (Map.Entry entry : mFiles.entrySet()) { InputStream inputStream = null; - String outPath = mFolder.path + entry.getValue(); try { - File outFile = new File(outPath); + File outFile = new File(mFolder.path, entry.getValue()); if (outFile.isFile()) { mIgnored++; continue;