Fixed Issue rebuilding addons / performing file integrity check

Blackbeard

Well-known member
I seem to be getting this error quite often

League\Flysystem\FileExistsException: File already exists at path: file_check/temp-file-check-2.json in src/vendor/league/flysystem/src/Filesystem.php at line 401

What am I getting wrong?
 
You should be able to fix this by changing this line in src/XF/Job/FileCheck.php:
Code:
$fs->write($fileCheck->getAbstractedCheckPath(true), json_encode($results));
to:
Code:
$fs->put($fileCheck->getAbstractedCheckPath(true), json_encode($results));
 
Top Bottom