I have an array of images in Python3 like this...
images = [
"/var/www/html/myfolder/images/1.jpg",
"/var/www/html/myfolder/images/441.jpg",
"/var/www/html/myfolder/images/15.jpg",
"/var/www/html/myfolder/images/78.jpg",
]
Instead of specifying the image like this I would like to pass an absolute path and have python create me the images list out of the .jpg images that are in that path.
What is my best approach?