projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecedb36
)
Fix bug in Downloader's _get_local_latest
author
David Stainton
<dstainton415@gmail.com>
Sat, 12 Sep 2015 14:52:26 +0000
(16:52 +0200)
committer
Daira Hopwood
<daira@jacaranda.org>
Tue, 15 Sep 2015 17:43:00 +0000
(18:43 +0100)
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
patch
|
blob
|
history
diff --git
a/src/allmydata/frontends/magic_folder.py
b/src/allmydata/frontends/magic_folder.py
index 7d114e21966856f7b10a335a7ca988b1414f7950..c7e589783f3d6a780f00bb89b94941ca39656963 100644
(file)
--- 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)