diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-02-26 16:37:36 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-02-26 16:37:36 +0000 |
| commit | c4a52f1297e993390e6ba31180976da8c945db38 (patch) | |
| tree | 04cb8dd32bbda4ca2b34293c05fe881c327449fc | |
| parent | Only use shrunk file if it is indeed smaller (diff) | |
| download | paper2remarkable-c4a52f1297e993390e6ba31180976da8c945db38.tar.gz paper2remarkable-c4a52f1297e993390e6ba31180976da8c945db38.zip | |
Use copy instead of move to keep intermediates
This is mostly useful for debugging and has no
effect on the working of the program.
| -rw-r--r-- | paper2remarkable/providers/_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paper2remarkable/providers/_base.py b/paper2remarkable/providers/_base.py index f8b895b..96fb151 100644 --- a/paper2remarkable/providers/_base.py +++ b/paper2remarkable/providers/_base.py @@ -134,7 +134,7 @@ class Provider(metaclass=abc.ABCMeta): intermediate_fname = tmp_filename for opname, op in self.operations: intermediate_fname = op(intermediate_fname) - shutil.move(intermediate_fname, clean_filename) + shutil.copy(intermediate_fname, clean_filename) if self.debug: print("Paused in debug mode in dir: %s" % working_dir) |
