I have a simple project with my Raspberry Pi 4: When I take pictures with a Pi Camera, the pictures are saved in the home
directory. But I want them to be saved on a USB stick.
I created a target folder at /mount/mydisk
to be the mount point of the storage device but I get the PermissionError
every time I shoot a picture.
This is the code:
def picture():
timestamp=datetime.now()
file_name='/media/pi/INTENSO'+str(timestamp)+'.jpg'
pc.capture(file_name)
I also tried it with a link to /mnt/mydisk
, /dev/sda1
but none of them work.