Saving file on shared drive (osx to windows)

I’m trying to save a file from osx to a mapped windows drive. My problem is that OF is prefixing the path to the projects data folder to my desired absolute path. So instead of this:

smb://192.168.1.100/Share/HELLO.txt

It is trying to create a file here:

/Users/blahblah/openFrameworks/apps/tests/fileTests/bin/data/smb:/192.168.1.100/Share/HELLO.txt

If looks like ofFile is adding ofToDataPath onto my path string in the ofFile:open method:

myFile = std::filesystem::path(ofToDataPath(_path.string()));

Is there a way around this?


EDIT: I’ve figured this out. The issue wasn’t OF. It is simply that once a network drive is mounted, it needs to be accesses via ‘/Volumes…’ so for me the following works:

ofFile newFile("/Volumes/Share/HELLO.txt", ofFile::ReadWrite);