From 9f2312ab4ac12721dc77149beafcc6c320066689 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Fri, 25 Sep 2015 10:39:57 +0200 Subject: [PATCH] Teach Uploader to ignore files unless they've changed - specifically we compare the ctime, mtime and size with the entry in magic-folder db. --- src/allmydata/frontends/magic_folder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 1ca638e8..11590d56 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -336,6 +336,8 @@ class Uploader(QueueMixin): version = 0 elif self._db.is_new_file_time(abspath_u, relpath_u): version += 1 + else: + return None uploadable = FileName(abspath_u, self._client.convergence) d2 = self._upload_dirnode.add_file(encoded_name_u, uploadable, metadata={"version":version}, overwrite=True) -- 2.45.2