Get filename from S3 bucket path
Get filename from S3 bucket path Question: I am getting the last modified file from S3 bucket using the below code: import boto3 import urllib.parse import json import botocore.session as bc import time from time import mktime from datetime import datetime print(‘Loading function’) def lambda_handler(event, context): s3_client = boto3.client("s3") list_of_s3_objs = s3_client.list_objects_v2(Bucket="mybucket", Prefix="folder/sub/") # Returns …