Remove email file count limit (#552)

This commit is contained in:
Kerem Yilmaz
2024-07-04 00:55:58 -07:00
committed by GitHub
parent cd0d563070
commit 7cdd986bde

View File

@@ -797,9 +797,6 @@ class SendEmailBlock(Block):
# if the file path is a directory, add all files in the directory, skip directories, limit to 10 files
if os.path.exists(path) and os.path.isdir(path):
if len(os.listdir(path)) > 10:
LOG.warning("SendEmailBlock: Too many files in the directory, not attaching to email")
continue
for file in os.listdir(path):
if os.path.isdir(os.path.join(path, file)):
LOG.warning("SendEmailBlock: Skipping directory", file=file)