Mac Folder Navigation

BlitzMax Forums/BlitzMax Beginners Area/Mac Folder Navigation

I have a simple copy file command that works fine on Windows:

CopyFile("../Database/Main.db", "../Save/New.db")

It simply puts a copy of the Main.db file in the Save folder. However, when I build the program on a Mac it creates an empty file called ../Save/New.db in the current directory. Clearly it doesn't like the "../" bit.

How do I navigate up a folder level?

Try ///Save/New.db

(not saying it will work)

Sounds like a bug...

Ah, sorry. I was actually looking in the wrong place. I'd made a mistake with ChangeDir before it got to copyfile. Must be that lager I had! :P