From 597a41e66da5ebede576b19feb279ace504e4d4c Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Tue, 13 Aug 2019 11:18:43 +0100 Subject: Bugfix for directory creation --- arxiv2remarkable.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arxiv2remarkable.py b/arxiv2remarkable.py index 80048ea..8be885b 100755 --- a/arxiv2remarkable.py +++ b/arxiv2remarkable.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -__version__ = "0.3.0" +__version__ = "0.3.1" __author__ = "G.J.J. van den Burg" """ @@ -157,7 +157,7 @@ class Provider(metaclass=abc.ABCMeta): if not self.center: return filepath - self.log("Centering PDF file") + self.log("Centering pdf file") centered_file = os.path.splitext(filepath)[0] + "-center.pdf" cropper = Cropper( filepath, centered_file, pdfcrop_path=self.pdfcrop_path @@ -232,7 +232,7 @@ class Provider(metaclass=abc.ABCMeta): self.log("Starting upload to reMarkable") if remarkable_dir: status = subprocess.call( - [self.rmapi_path, "mkdir", remarkable_dir], + [self.rmapi_path, "mkdir", remarkable_dir + "/"], stdout=subprocess.DEVNULL, ) if not status == 0: -- cgit v1.2.3