From 6fecc4d60fafa977b3bfba05dbb3f88afaed45b0 Mon Sep 17 00:00:00 2001 From: Eugen Ciur Date: Sun, 21 Feb 2021 15:22:42 +0100 Subject: [PATCH] minor fix --- mglib/storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mglib/storage.py b/mglib/storage.py index 906fbde..9a90c44 100644 --- a/mglib/storage.py +++ b/mglib/storage.py @@ -137,7 +137,7 @@ class Storage: if os.path.exists(abs_dirname_results): os.rmdir(abs_dirname_results) - def copy_doc(self, src, dst): + def copy_doc(self, src: DocumentPath, dst: DocumentPath): """ copy given file src file path to destination as absolute doc_path @@ -156,7 +156,7 @@ class Storage: f"copy_doc: {src} to {dst}" ) shutil.copyfile( - src, + self.abspath(src), self.abspath(dst) )