From 7ce26ec344f596ee96781c79104e106eb5c69123 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Fri, 17 Apr 2015 22:25:30 +0100 Subject: [PATCH] Remove filepath from pending set earlier --- src/allmydata/frontends/drop_upload.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.45.2