projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d86cb62
)
Teach Uploader to ignore files unless they've changed
author
David Stainton
<dstainton415@gmail.com>
Fri, 25 Sep 2015 08:39:57 +0000
(10:39 +0200)
committer
Daira Hopwood
<daira@jacaranda.org>
Wed, 30 Sep 2015 15:45:27 +0000
(16:45 +0100)
- specifically we compare the ctime, mtime and size with the
entry in magic-folder db.
src/allmydata/frontends/magic_folder.py
patch
|
blob
|
history
diff --git
a/src/allmydata/frontends/magic_folder.py
b/src/allmydata/frontends/magic_folder.py
index 1ca638e874682d0c8d751f81420091e8fa9bafd2..11590d569fc5a77204938168e55699c70473005c 100644
(file)
--- 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)