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/?a=commitdiff_plain;h=e1cddeeedfa9260d077357b7ee6ef7e204108842;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 062cb04e..47988404 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)