diff --git a/amazon_s3/s3reader.py b/amazon_s3/s3reader.py index 3bbd950..fd42423 100644 --- a/amazon_s3/s3reader.py +++ b/amazon_s3/s3reader.py @@ -268,7 +268,7 @@ def get_files_from_url(self) -> list[str]: temp_dir = self.download_dir skip_count = 0 - logging.getLogger().info(f"Downloading files from '{self.bucket}' to {temp_dir}") + logging.getLogger().info(f"Downloading files from '{self.bucket}' to {temp_dir} since {min_filter_date}") for f_item in f_values: f_item_name = f_item.get('name', None) @@ -328,6 +328,8 @@ def get_files_from_url(self) -> list[str]: complete_url = f"{base_url}{next_url_href}" if next_url_href is not None else None self.skip_count = skip_count + if len(self.element_ids) <= 0: + return [] if self.verbose: _ = self.save_debug(self.element_dict, prefix='denodo')