First time here? Check out the FAQ!
Simple solution: instead of feeding the original folder path folder_path/, try folder_path/image_%04d.jpg (change it to the format of the images in the folder)
folder_path/
folder_path/image_%04d.jpg