Weird syntax in untar_data

i have started the first lesson and this line below in the demo code looks weird to me

path = untar_data(URLs.PETS)/‘images’

can someone explain to me what the forward slash does here with a string “images”?
what am i missing here?

thank you!

have a look at how pathlib works.

untar_data() returns a Path object instead of a string pointing to where the data was untar’d to.
if i have a path object called p which points at /usr/local/blah/pets then i can create a new path like this: imgs = p/'images' and imgs will point at /usr/local/blah/pets/images.

1 Like

thank you!

actually i haven’t used pathlib yet, that is why it looked weird to me