{"action":"created","issue":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/5187","repository_url":"https://api.github.com/repos/openframeworks/openFrameworks","labels_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/5187/labels{/name}","comments_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/5187/comments","events_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/5187/events","html_url":"https://github.com/openframeworks/openFrameworks/issues/5187","id":169471133,"number":5187,"title":"ofFile::open() ALWAYS calls ofToDataPath()","user":{"login":"traumedy","id":4910481,"avatar_url":"https://avatars.githubusercontent.com/u/4910481?v=3","gravatar_id":"","url":"https://api.github.com/users/traumedy","html_url":"https://github.com/traumedy","followers_url":"https://api.github.com/users/traumedy/followers","following_url":"https://api.github.com/users/traumedy/following{/other_user}","gists_url":"https://api.github.com/users/traumedy/gists{/gist_id}","starred_url":"https://api.github.com/users/traumedy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/traumedy/subscriptions","organizations_url":"https://api.github.com/users/traumedy/orgs","repos_url":"https://api.github.com/users/traumedy/repos","events_url":"https://api.github.com/users/traumedy/events{/privacy}","received_events_url":"https://api.github.com/users/traumedy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-08-04T20:53:21Z","updated_at":"2016-08-08T13:23:03Z","closed_at":null,"body":"This makes many (most?) ofFile functions fail if bRelativeToData is false, such as doesFileExist(), copyFromTo(), removeFile() etc."},"comment":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/comments/238233641","html_url":"https://github.com/openframeworks/openFrameworks/issues/5187#issuecomment-238233641","issue_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/5187","id":238233641,"user":{"login":"ofTheo","id":144000,"avatar_url":"https://avatars.githubusercontent.com/u/144000?v=3","gravatar_id":"","url":"https://api.github.com/users/ofTheo","html_url":"https://github.com/ofTheo","followers_url":"https://api.github.com/users/ofTheo/followers","following_url":"https://api.github.com/users/ofTheo/following{/other_user}","gists_url":"https://api.github.com/users/ofTheo/gists{/gist_id}","starred_url":"https://api.github.com/users/ofTheo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ofTheo/subscriptions","organizations_url":"https://api.github.com/users/ofTheo/orgs","repos_url":"https://api.github.com/users/ofTheo/repos","events_url":"https://api.github.com/users/ofTheo/events{/privacy}","received_events_url":"https://api.github.com/users/ofTheo/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T13:23:03Z","updated_at":"2016-08-08T13:23:03Z","body":"Looking through this more this is definitely a bug. \r\nAs mentioned the static ofFile/ofDirectory functions use the ofFile(string path) constructor which in turn calls ofFile::open \r\n\r\nThis is where the ofToDataPath call is:\r\nhttps://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworks/utils/ofFileUtils.cpp#L440\r\n\r\nI think it would be good to fix this so that the static methods work as expected.  \r\nWe can also talk about deprecating them, but we should at least get this fixed. \r\n\r\nA possible solution would be to not use ofFile::open in the static calls but another helper function that doesn't modify the path.  I think this would be fairly easy to do, I am happy to work on it. \r\n\r\n"}}
{"actor":{"display_login":"ofTheo"}}