diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 37beca79e..fd400f46c 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -1390,8 +1390,6 @@ class Downloader(QueueMixin, WriteFileMixin): # uploaded. if db_entry: - dmd_last_uploaded_uri = item.metadata.get('last_uploaded_uri', None) - # * 2c. If any of the following are true, then classify as a conflict: # * i. there are pending notifications of changes to ``foo``; # * ii. the last-seen statinfo is either absent (i.e. there is diff --git a/src/allmydata/util/fileutil.py b/src/allmydata/util/fileutil.py index f6ebce7bc..f3c055a2f 100644 --- a/src/allmydata/util/fileutil.py +++ b/src/allmydata/util/fileutil.py @@ -652,6 +652,10 @@ else: move_into_place(replacement_path, replaced_path) except EnvironmentError: reraise(ConflictError) + except OSError as e: + if e.errno != ENOENT: + raise + PathInfo = namedtuple('PathInfo', 'isdir isfile islink exists size mtime_ns ctime_ns')