def list_files()

in src/s3_util.py [0:0]


    def list_files(self, remote_path):
        """
Lists the files in s3
        :param remote_path: The s3 uri, e.g. s3://mybucket/prefix/
        :return: List of files
        """
        assert remote_path.startswith("s3://")
        assert remote_path.endswith("/")

        bucket, key = self._get_bucketname_key(remote_path)

        s3 = boto3.resource('s3')

        bucket = s3.Bucket(name=bucket)

        return ((o.bucket_name, o.key) for o in bucket.objects.filter(Prefix=key))