I am on a mac and trying to read a json file located on a network connected raspberry pi. The pi and the file are visible in Finder and can also be reached via ssh. But when I try to read the file from Java the error message is /nsp/pi/sprinkler/schedule.json (No such file or directory)"
The pi is running samba under the latest stretch (debian) operating system.
The Mac Finder can see the pi, drill down, and open the schedule.json file so there must be a way to do this. I just haven't found it yet.
I'll be happy to supply any other information that might help.
i went back to the original code but changed the file name to
"\\\\nsp\\pi\\sprinkler\\schedule.json" and then I tried "\\\\nsp/pi/sprinkler/schedule.json"
I also tried both of the above with nsp.local instead of just nsp.
All cases result in file not found error.
\\nsp\pi\sprinkler\schedule.json (No such file or directory)
BUILD SUCCESSFUL (total time: 8 seconds)