diff --git a/plugins/generic/filesystem.py b/plugins/generic/filesystem.py index 027a59dd6..0165ea3ca 100644 --- a/plugins/generic/filesystem.py +++ b/plugins/generic/filesystem.py @@ -294,7 +294,8 @@ class Filesystem: else: chunk = "" - newFileContent += chunk + if chunk: + newFileContent += chunk fileContent = newFileContent