From: David Stainton Date: Fri, 17 Apr 2015 21:25:30 +0000 (+0100) Subject: Remove filepath from pending set earlier X-Git-Url: https://git.rkrishnan.org/specifications/components?a=commitdiff_plain;h=7ce26ec344f596ee96781c79104e106eb5c69123;p=tahoe-lafs%2Ftahoe-lafs.git Remove filepath from pending set earlier --- diff --git a/src/allmydata/frontends/drop_upload.py b/src/allmydata/frontends/drop_upload.py index 75248e55..b2f1a5d5 100644 --- a/src/allmydata/frontends/drop_upload.py +++ b/src/allmydata/frontends/drop_upload.py @@ -164,12 +164,11 @@ class DropUploader(service.MultiService): # FIXME (ticket #1712): if this already exists as a mutable file, we replace the # directory entry, but we should probably modify the file (as the SFTP frontend does). def _add_file(ign): + self._pending.remove(path) name = path.basename() # on Windows the name is already Unicode if sys.platform != "win32": name = name.decode(get_filesystem_encoding()) - - self._pending.remove(path) u = FileName(path.path, self._convergence) return self._parent.add_file(name, u) d.addCallback(_add_file)