openframeworks/openFrameworks — pull request #1598 by arturoc (2012-09-17 12:56:14+00:00)
Title: refactor ofFile and ofDirectory Poco::File into ofFilePath

the Poco::File in ofFile and ofDirectory have been refactored into ofFilePath and those classes inherit now from ofFilePath. ofFilePath can be used to compare and join paths using the overloaded operators:

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

returns true

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

returns "images/img.jpg" no matter the trailing slash

ofToDataPath has been refactored to use ofFilePath instead of string comparison

still needs some more testing