Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormr-flibble <mr-flibble@users.noreply.github.com>2022-04-09 19:33:08 +0300
committerGitHub <noreply@github.com>2022-04-09 19:33:08 +0300
commit1fb1856b377ba0f2fb060b89572449500342b284 (patch)
treeec81d72a1a094619e271fa1d7606d235bec9f0dd
parentf3bc7ec3aff115f97eb9033d376ebbf58c0c29d2 (diff)
fix for handling state 5
fix for issue https://github.com/duplicati/duplicati/issues/4666 Same logic as at powershell verify file (at line 78 in ps1) Credits for code "ts678" in Duplicati forum I tested it and test output fir json with error 5 is now same as in powershell verify
-rw-r--r--Tools/Verification/DuplicatiVerify.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/Verification/DuplicatiVerify.py b/Tools/Verification/DuplicatiVerify.py
index f0372cdf4..190afe0cc 100644
--- a/Tools/Verification/DuplicatiVerify.py
+++ b/Tools/Verification/DuplicatiVerify.py
@@ -46,11 +46,13 @@ def verifyHashes(filename, quiet = True, buffer_size=8192):
filename = file["Name"]
hash = file["Hash"]
size = file["Size"]
+ state = file["State"]
fullpath = os.path.join(folder, filename)
if not os.path.exists(fullpath):
- print("File missing:", fullpath)
- errorCount += 1
+ if state != 5:
+ print("File missing:", fullpath)
+ errorCount += 1
else:
checked += 1
if not quiet: