From: Daira Hopwood Date: Tue, 27 Oct 2015 17:10:15 +0000 (+0000) Subject: Don't download the deletion marker file unnecessarily. X-Git-Url: https://git.rkrishnan.org/components/%22news.html/configuration.txt?a=commitdiff_plain;h=4dc47e758145f022f1ddf64a892f74c6864555d3;p=tahoe-lafs%2Ftahoe-lafs.git Don't download the deletion marker file unnecessarily. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 96156f60..f9e0433b 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -712,10 +712,10 @@ class Downloader(QueueMixin, WriteFileMixin): d.addCallback(lambda ign: fileutil.make_dirs(abspath_u)) d.addCallback(lambda ign: abspath_u) else: - d.addCallback(lambda ign: file_node.download_best_version()) if metadata.get('deleted', False): d.addCallback(lambda ign: self._rename_deleted_file(abspath_u)) else: + d.addCallback(lambda ign: file_node.download_best_version()) d.addCallback(lambda contents: self._write_downloaded_file(abspath_u, contents, is_conflict=is_conflict))