{"action":"created","issue":{"url":"https://api.github.com/repos/rocketeers/rocketeer/issues/655","repository_url":"https://api.github.com/repos/rocketeers/rocketeer","labels_url":"https://api.github.com/repos/rocketeers/rocketeer/issues/655/labels{/name}","comments_url":"https://api.github.com/repos/rocketeers/rocketeer/issues/655/comments","events_url":"https://api.github.com/repos/rocketeers/rocketeer/issues/655/events","html_url":"https://github.com/rocketeers/rocketeer/issues/655","id":143019864,"number":655,"title":"getCurrentReleasePath issue","user":{"login":"Biktop","id":742501,"avatar_url":"https://avatars.githubusercontent.com/u/742501?v=3","gravatar_id":"","url":"https://api.github.com/users/Biktop","html_url":"https://github.com/Biktop","followers_url":"https://api.github.com/users/Biktop/followers","following_url":"https://api.github.com/users/Biktop/following{/other_user}","gists_url":"https://api.github.com/users/Biktop/gists{/gist_id}","starred_url":"https://api.github.com/users/Biktop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Biktop/subscriptions","organizations_url":"https://api.github.com/users/Biktop/orgs","repos_url":"https://api.github.com/users/Biktop/repos","events_url":"https://api.github.com/users/Biktop/events{/privacy}","received_events_url":"https://api.github.com/users/Biktop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-23T16:59:58Z","updated_at":"2016-04-22T14:44:34Z","closed_at":null,"body":"I came across with strange behaviour next method:\r\n`$task->releasesManager->getCurrentReleasePath()`\r\n\r\n**OS**: OSX 10.11.4\r\n**php**: 5.5\r\n\r\n**application_name**: 'project'\r\n**root_directory**: '/'\r\n**app_directory**: ''\r\n\r\nIt seems that problem is in my folder organisation:\r\n```\r\n\\project\r\n    releases\\\r\n    current\\\r\n        domains\\\r\n             project\\\r\n                  text.txt\r\n```\r\nSo if I call in my task:\r\n`echo $task->releasesManager->getCurrentReleasePath('domains/project/text.txt')`\r\n`>> /project/releases/20160323165645/domainstext.txt`\r\n\r\nFor example if I rename domains/project to domains/project1 then all work correct\r\n`echo $task->releasesManager->getCurrentReleasePath('domains/project1/text.txt')`\r\n`>> /project/releases/20160323165645/domains/project1/text.txt`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rocketeers/rocketeer/issues/comments/213455053","html_url":"https://github.com/rocketeers/rocketeer/issues/655#issuecomment-213455053","issue_url":"https://api.github.com/repos/rocketeers/rocketeer/issues/655","id":213455053,"user":{"login":"Biktop","id":742501,"avatar_url":"https://avatars.githubusercontent.com/u/742501?v=3","gravatar_id":"","url":"https://api.github.com/users/Biktop","html_url":"https://github.com/Biktop","followers_url":"https://api.github.com/users/Biktop/followers","following_url":"https://api.github.com/users/Biktop/following{/other_user}","gists_url":"https://api.github.com/users/Biktop/gists{/gist_id}","starred_url":"https://api.github.com/users/Biktop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Biktop/subscriptions","organizations_url":"https://api.github.com/users/Biktop/orgs","repos_url":"https://api.github.com/users/Biktop/repos","events_url":"https://api.github.com/users/Biktop/events{/privacy}","received_events_url":"https://api.github.com/users/Biktop/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T14:44:34Z","updated_at":"2016-04-22T14:44:34Z","body":"Thanks!\r\n\r\nIn my case I made next workaround:\r\n```\r\n$currentPath = $task->releasesManager->getCurrentReleasePath();\r\n$content = $task->getFile($currentPath.'/domains/project/text.txt');\r\n\r\n```"}}