Mac Folder Navigation

BlitzMax Forums/BlitzMax Beginners Area/Mac Folder Navigation

siread(Posted 2007) [#1]
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?


ImaginaryHuman(Posted 2007) [#2]
Try ///Save/New.db

(not saying it will work)


Brucey(Posted 2007) [#3]
Sounds like a bug...


siread(Posted 2007) [#4]
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