From: David Stainton Date: Sat, 12 Sep 2015 14:52:26 +0000 (+0200) Subject: Fix bug in Downloader's _get_local_latest X-Git-Url: https://git.rkrishnan.org/uri//%22%22?a=commitdiff_plain;h=3e66c67635326a9f81c5e0799b096bc30f58c95b;p=tahoe-lafs%2Ftahoe-lafs.git 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. --- 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)