Unable to download Images

Hello i had a simillar problem than: 2020 Lesson 2 / 02_production FileNotFoundError images/grizzly.jpg i fixed it like He described,
but i have the problem that when i download the images it does download the images but my
fns = get_image_files(path)
fns
has no elements in it the output is : (#0) [] instead of smthing like:
[Path(‘bears/black/00000095.jpg’),Path(‘bears/black/00000133.jpg’),Path(‘bears/black/00000062.jpg’),Path(‘bears/black/00000023.jpg’),Path(‘bears/black/00000029.jpg’),Path(‘bears/black/00000094.jpg’),Path(‘bears/black/00000124.jpg’),Path(‘bears/black/00000056.jpeg’),Path(‘bears/black/00000046.jpg’),Path(‘bears/black/00000045.jpg’)…
probably i have selected the wrong or no directory.

Is your for loop in cell 19 supposed to be nested under the path.exists() piece? If not, you can highlight everything under the for loop and do Shift+Tab to unindent it a level.

There is also an exist_ok argument in path.mkdir() that you could use as well so you wouldn’t need the if statement at all. https://docs.python.org/3/library/pathlib.html#pathlib.Path.mkdir