When I use ofDirectory I have to give an absolute path, but when I move my app between machines I have to change the path in code. Apart from using ofxFileDialogue to get the user to set a path is there a way to use ofDirectory to go to relative paths, ie those inside the data folder? I would like to have it scan a folder in the data folder (/movies) which will always be there, instead of having to put the absolute path inside an xml or in my code.

for getting the relative path to the data folder you just need to do:

ofDirectory dir("movies");  

Ok cheers, I kept trying “/movies”.