From c31aff5fdc6f2e5e43059372889ee04dce73e572 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Sat, 12 Sep 2015 16:52:26 +0200 Subject: [PATCH] Fix bug in Downloader's _get_local_latest previously the magic-folder path was not prepended to the file path... thus the file didn't exist and the call to _get_local_latest returned None. --- 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 7d114e21..c7e58978 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -436,7 +436,7 @@ class Downloader(QueueMixin): exists in our magic-folder db; if not then return None else check for an entry in our magic-folder db and return the version number. """ - if not os.path.exists(path_u): + if not os.path.exists(os.path.join(self._local_path_u,path_u)): return None return self._db.get_local_file_version(path_u) -- 2.45.2