copyparty/tests
ed 6e671c5245 verify on-disk contents before dedup;
previously, the assumption was made that the database and filesystem
would not desync, and that an upload could safely be substituted with
a symlink to an existing copy on-disk, assuming said copy still
existed on-disk at all

this is fine if copyparty is the only software that makes changes to
the filesystem, but that is a shitty assumption to make in hindsight

add `--safe-dedup` which takes a "safety level", and by default (50)
it will no longer blindly expect that the filesystem has not been
altered through other means; the file contents will now be hashed
and compared to the database

deduplication can be much slower as a result, but definitely worth it
as this avoids some potentially very unpleasant surprises

the previous behavior can be restored with `--safe-dedup 1`
2024-09-06 19:08:14 +00:00
..
res/idp idp: precise expansion of ${u} (fixes #79); 2024-03-21 20:10:27 +00:00
__init__.py fix write-only volumes + add regression test 2021-04-24 02:48:41 +02:00
ptrav.py make linters happier 2023-11-30 17:33:07 +00:00
run.py make linters happier 2023-11-30 17:33:07 +00:00
test_dedup.py optimize test_dedup.py 2024-08-31 21:54:47 +00:00
test_dots.py fix dedup bug as of v1.13.8: 2024-08-30 22:06:25 +00:00
test_dxml.py make linters happier 2023-11-30 17:33:07 +00:00
test_hooks.py add hook side-effects; closes #86 2024-08-11 14:52:32 +00:00
test_httpcli.py optimize test_httpcli.py too, from 1.64 to 1.51s 2024-08-31 22:03:06 +00:00
test_idp.py fix tests on windows 2024-04-25 22:25:38 +00:00
test_vfs.py cleanup: strip trailing whitespace 2024-07-26 19:33:56 +00:00
util.py verify on-disk contents before dedup; 2024-09-06 19:08:14 +00:00