openframeworks/openFrameworks — pull request #1597 by arturoc (2012-09-17 12:46:30+00:00)
Title: ofFilePath refactoring

refactors the Poco::File in ofFile and ofDirectory into ofFilePath and make them inherit from ofFilePath. Now ofFilePath can be used to compare and join paths using the overloaded operators, it can also be used as a string since it has a cast operator:

ofFilePath("images") == ofFilePath("../data/images")

returns true

ofFilePath("images") + ofFilePath("img.jpg")

returns images/img.jpg no matter if there's trailing slash or not

ofToDataPath has been rewritten to use ofFilePath

still needs some more testing