How to force a path to write a file outside of the sketch directory?

SelectFolder is not suitable for me because it opens a window …

You just need to give the fully qualified path of what you need to save eg if saving an image on linux to home directory:-


You will of course need write permission.

1 Like

OK, thanks. I had to run as administrator

Ideally you don’t want to be writing to a protected folder with admin rights, depending on your setup it may be safer to give yourself write access to a specific folder.