ezgmail icon indicating copy to clipboard operation
ezgmail copied to clipboard

[BUG] `overwrite=False` is not protecting local files, they are overwritten anyway

Open karolzlot opened this issue 2 years ago • 0 comments

    def downloadAllAttachments(self, downloadFolder=".", overwrite=True):
        """Download all of the attachments in this message to the local folder ``downloadFolder``. If ``overwrite`` is
        ``True``, existing local files will be overwritten by attachments with the same filename."""

overwrite=False doesn't overwrite only if duplicate filenames are in attachements to mail. Contrary to doctring it doesn't check if local files exists already or not.

karolzlot avatar Jun 13 '22 09:06 karolzlot