From 527f57a68e4a80c13e7f6ba6e73735a22b776f0f Mon Sep 17 00:00:00 2001 From: Kerem Yilmaz Date: Wed, 5 Jun 2024 20:43:11 -0700 Subject: [PATCH] Support up to 25 attachments (#428) --- skyvern/forge/sdk/workflow/models/block.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skyvern/forge/sdk/workflow/models/block.py b/skyvern/forge/sdk/workflow/models/block.py index 73bcece3..21d5abf3 100644 --- a/skyvern/forge/sdk/workflow/models/block.py +++ b/skyvern/forge/sdk/workflow/models/block.py @@ -673,9 +673,9 @@ class UploadToS3Block(Block): client = self.get_async_aws_client() # is the file path a file or a directory? if os.path.isdir(self.path): - # get all files in the directory, if there are more than 10 files, we will not upload them + # get all files in the directory, if there are more than 25 files, we will not upload them files = os.listdir(self.path) - if len(files) > 10: + if len(files) > 25: raise ValueError("Too many files in the directory, not uploading") for file in files: # if the file is a directory, we will not upload it