aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2020-01-10 10:52:36 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2020-01-10 10:52:36 +0000
commit11389ca26ea8144875625590070344447068f9d2 (patch)
tree47b9b76aa6306d16258e1d2521f262dbab224d04
parentSimplify testing (diff)
downloadpaper2remarkable-11389ca26ea8144875625590070344447068f9d2.tar.gz
paper2remarkable-11389ca26ea8144875625590070344447068f9d2.zip
Bugfix for directory creation (fixes #20)
-rw-r--r--paper2remarkable/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paper2remarkable/utils.py b/paper2remarkable/utils.py
index 4d42f23..c1ef394 100644
--- a/paper2remarkable/utils.py
+++ b/paper2remarkable/utils.py
@@ -106,7 +106,7 @@ def upload_to_remarkable(filepath, remarkable_dir="/", rmapi_path="rmapi"):
remarkable_dir = remarkable_dir.rstrip("/")
if remarkable_dir:
status = subprocess.call(
- [rmapi_path, "mkdir", remarkable_dir + "/"],
+ [rmapi_path, "mkdir", remarkable_dir],
stdout=subprocess.DEVNULL,
)
if not status == 0: