def get_image_dir(img_dir):
current_wall = wallpaper.get()<EOL>current_wall = os.path.basename(current_wall)<EOL>file_types = ("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>")<EOL>return [img.name for img in os.scandir(img_dir)<EOL>if img.name.lower().endswith(file_types)], current_wall<EOL>
Get all images in a directory.