Loading src/cso/cso_dataspace.py +6 −1 Original line number Diff line number Diff line Loading @@ -58,6 +58,9 @@ # Trap files that could not be downloaded. # Added production time of data files to listings. # # 2026-07, Arjo Segers # Changed counting of files in S3 bucket following deprecation error. # ######################################################################## Loading Loading @@ -782,7 +785,9 @@ class CSO_DataSpace_Downloader(object): pfiles = bucket.objects.filter( Prefix=product ) # count: npfile = len(list(pfiles)) npfile = 0 for pfile in pfiles: npfile += 1 # check ... if npfile != 1: print(f"ERROR - found {npfile} files in S3 bucket for product: {product}") Loading Loading
src/cso/cso_dataspace.py +6 −1 Original line number Diff line number Diff line Loading @@ -58,6 +58,9 @@ # Trap files that could not be downloaded. # Added production time of data files to listings. # # 2026-07, Arjo Segers # Changed counting of files in S3 bucket following deprecation error. # ######################################################################## Loading Loading @@ -782,7 +785,9 @@ class CSO_DataSpace_Downloader(object): pfiles = bucket.objects.filter( Prefix=product ) # count: npfile = len(list(pfiles)) npfile = 0 for pfile in pfiles: npfile += 1 # check ... if npfile != 1: print(f"ERROR - found {npfile} files in S3 bucket for product: {product}") Loading