diff --git a/darc/archive.py b/darc/archive.py index 4be6eccfb..bc007cd83 100644 --- a/darc/archive.py +++ b/darc/archive.py @@ -388,7 +388,7 @@ def process_file(self, path, st, cache): return else: self.hard_links[st.st_ino, st.st_dev] = safe_path - path_hash = self.key.id_hash(path.encode('utf-8', 'surrogateescape')) + path_hash = self.key.id_hash(os.path.join(self.cwd, path).encode('utf-8', 'surrogateescape')) ids = cache.file_known_and_unchanged(path_hash, st) chunks = None if ids is not None: