I set up a Pi as a file server. So from my pc or other pis I can easily add and remove files. I can do it manually no problem. So, with my other Pi's, I want to save to the network folder, but I can't figure out the directory. Currently I have

directory = '////mastercamera//PiShare//'
camera.capture(directory + ip = '.jpg' format='jpeg')

I've tried smb://mastercameara/PiShare, //mastercamera/Pishare, but no matter what it says no such directory.


Python can only easily access local paths, not network paths. See here for a similar question with a suggested fix.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.