Island: Add condition for leaving readme

This commit is contained in:
Ilija Lazoroski 2021-07-09 11:15:55 +02:00
parent 253f2668d0
commit 69754205d0
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ class RansomwarePayload:
file_list = self._find_files()
self._encrypt_files(file_list)
self._leave_readme()
if self._target_dir:
self._leave_readme()
def _find_files(self) -> List[Path]:
LOG.info(f"Collecting files in {self._target_dir}")