From 92300a7d63f30a20c847c85ab1f9cdb22f97ccd9 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Sun, 7 Jan 2018 16:51:09 +0100 Subject: [PATCH] Create destination directory in case it doesn't exist --- .../Plugins/SharePlugin/ShareSettingsActivity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareSettingsActivity.java b/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareSettingsActivity.java index 87b56565..68a046c1 100644 --- a/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareSettingsActivity.java +++ b/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareSettingsActivity.java @@ -93,6 +93,11 @@ public class ShareSettingsActivity extends PluginSettingsActivity { } } } + try { + getDefaultDestinationDirectory().mkdirs(); + } catch(Exception e) { + e.printStackTrace(); + } return DocumentFile.fromFile(getDefaultDestinationDirectory()); }