Saving file other folder than data

Hi!

I’m trying to save a file in the dekstop but i get an error =
boost::filesystem::create_directories: Permission denied: “…/…/…/…/…/…/…/…/…/…/…/base/Desktop”

this is the code

   ofSetDataPathRoot("/Users/base/Desktop/");
    texImage.save("Filter1231.jpg");

any ideas?

Have you tried with a different path? Maybe “C:\\temp”?

Also make sure you have permission to add the file in the folder. If you are working inside Program Files you will probably need Administrator permissions.

No luck!
any one knows how to set the saved file in a custom folder inside data?