I want to find out whether the paths have 'video' and 'image' folder present or not. I only have this list as my input. I don't have the path present in my system.
all_path = ["my_path/output/12345/video/folder/1","my_path/output/12345/video/folder/2","my_path/output/12345/video/folder/3","my_path/output/98745/video/folder/1","my_path/output/98745/video/folder/2","my_path/output/90000/video/folder/1",......,"my_path/output/12345/image/folder/10","my_path/output/12345/image/folder/9","my_path/output/12345/image/folder/8","my_path/output/98745/image/folder/3","my_path/output/98745/image/folder/9","my_path/output/11145/image/folder/8",......]
subfolder_startswith = ["video","image"]
Output:
11145: video
90000: image
As in folder 11145, there is no sub folder name as video. And in 90000 no sub folder name as image