From 399e93ea262c442467aed6c643e1589e42e7fb8d Mon Sep 17 00:00:00 2001
From: Daira Hopwood <daira@jacaranda.org>
Date: Thu, 30 Jul 2015 16:24:57 +0100
Subject: [PATCH] Trivial fix.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
---
 src/allmydata/frontends/magic_folder.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py
index 4e64cfd4..84f88055 100644
--- a/src/allmydata/frontends/magic_folder.py
+++ b/src/allmydata/frontends/magic_folder.py
@@ -403,7 +403,7 @@ class Downloader(QueueMixin):
         """
         if not os.path.exists(path_u):
             return None
-        return self._db.get_local_file_version(child_path_u)
+        return self._db.get_local_file_version(path_u)
 
     def _get_collective_latest_file(self, filename):
         """_get_collective_latest_file takes a file path pointing to a file managed by
-- 
2.45.2