From 9f74587cc15f89382c4dbc0ee881670dcd04cfe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 15 Jan 2020 16:35:43 +0100 Subject: [PATCH] fix: Set the right destination path. --- filecheck/filecheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filecheck/filecheck.py b/filecheck/filecheck.py index 3a9467d..b1ae392 100644 --- a/filecheck/filecheck.py +++ b/filecheck/filecheck.py @@ -735,7 +735,7 @@ class KittenGroomerFileCheck(KittenGroomerBase): if not srcpath.is_symlink() and srcpath.is_dir(): self.logger.add_dir(srcpath) else: - dstpath = dst_dir / srcpath + dstpath = Path(str(srcpath).replace(str(self.src_root_path), str(self.dst_root_path))) cur_file = File(srcpath, dstpath) self.process_file(cur_file)