Create folders by date strftime()

I want to create folders by date for my camera files.
I accidentally saw that this happened because I use the wrong format.
When I use folliwing:

filename: /media/arlo/{{ now().strftime(“%Y-%m-%d_%H.%M.%S”) }}.jpg

the file is located in /media/arlo, but iwant it in folder /media/arlo/06/25.

filename: "/media/arlo/{{ now().strftime('%Y/%m/%d/%H-%M-%S') }}.jpg"

Thanks Petro, when I think about your solution it’s so logical :smiling_face:.

How can I solve this?

Can’t write filename: “/media/arlo/2024/06/26/14-34-05.hls”, no access to path!