Fix SyntaxWarning in recovery.py

Fixes:
recovery.py:119: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if((fileCounter % onePercentFiles) is 0):
This commit is contained in:
Anson 2021-06-26 20:00:38 +08:00 committed by GitHub
parent 4f214f84ad
commit 033e5ac4a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ for root, dirs, files in os.walk(source, topdown=False):
shutil.copy2(sourcePath, destinationFile)
fileCounter += 1
if((fileCounter % onePercentFiles) is 0):
if((fileCounter % onePercentFiles) == 0):
log(str(fileCounter) + " / " + totalAmountToCopy + " processed.")
log("start special file treatment")