From 8d3bf00b09b5f10dc3b7a20a085486d25db225fa Mon Sep 17 00:00:00 2001 From: artus Date: Mon, 19 Nov 2018 14:47:22 +0100 Subject: [PATCH] fixes Path value in read_content result --- photograb/store.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/photograb/store.py b/photograb/store.py index 017cdae..b37740c 100644 --- a/photograb/store.py +++ b/photograb/store.py @@ -45,10 +45,11 @@ class Store: content = Content() for path, _, filenames in os.walk(self.path): # Ignore excluded folders - if exclude and Path(path).absolute().name == exclude: + path = Path(path) + if exclude and path.absolute().name == exclude: continue for name in filenames: - content[name] = path + "/" + name + content[name] = path / name return content def copy_content(self, content):