{"action":"created","issue":{"url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1243","labels_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1243/labels{/name}","comments_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1243/comments","events_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1243/events","html_url":"https://github.com/berkshelf/berkshelf/issues/1243","id":36524554,"number":1243,"title":"templates not copied to subfolder","user":{"login":"davidsayers","id":7156134,"avatar_url":"https://avatars.githubusercontent.com/u/7156134?v=3","gravatar_id":"","url":"https://api.github.com/users/davidsayers","html_url":"https://github.com/davidsayers","followers_url":"https://api.github.com/users/davidsayers/followers","following_url":"https://api.github.com/users/davidsayers/following{/other_user}","gists_url":"https://api.github.com/users/davidsayers/gists{/gist_id}","starred_url":"https://api.github.com/users/davidsayers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidsayers/subscriptions","organizations_url":"https://api.github.com/users/davidsayers/orgs","repos_url":"https://api.github.com/users/davidsayers/repos","events_url":"https://api.github.com/users/davidsayers/events{/privacy}","received_events_url":"https://api.github.com/users/davidsayers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/berkshelf/berkshelf/labels/Waiting%20Response","name":"Waiting Response","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-06-25T21:32:01Z","updated_at":"2015-06-25T16:41:52Z","closed_at":null,"body":"Hi,\r\n\r\nWhen i upload a cookbook that contains subfolders in the templates directory it places all the files in the root folder:\r\n\r\nBefore Upload:\r\n\r\n```text\r\ntemplates/\r\n-> default\r\n---> dir1\r\n------> test\r\n---> dir2\r\n------> test\r\n```\r\n\r\nOn Chef server:\r\n\r\n```text\r\ntemplates/\r\n-> default\r\n---> test\r\n---> test\r\n```\r\n\r\nWhen I use knife it uploads the files to the correct location.\r\n\r\n$ berks -v\r\n3.1.2\r\n\r\n$ knife -v\r\nChef: 11.12.2\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/berkshelf/berkshelf/issues/comments/115319316","html_url":"https://github.com/berkshelf/berkshelf/issues/1243#issuecomment-115319316","issue_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1243","id":115319316,"user":{"login":"davidsayers","id":7156134,"avatar_url":"https://avatars.githubusercontent.com/u/7156134?v=3","gravatar_id":"","url":"https://api.github.com/users/davidsayers","html_url":"https://github.com/davidsayers","followers_url":"https://api.github.com/users/davidsayers/followers","following_url":"https://api.github.com/users/davidsayers/following{/other_user}","gists_url":"https://api.github.com/users/davidsayers/gists{/gist_id}","starred_url":"https://api.github.com/users/davidsayers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidsayers/subscriptions","organizations_url":"https://api.github.com/users/davidsayers/orgs","repos_url":"https://api.github.com/users/davidsayers/repos","events_url":"https://api.github.com/users/davidsayers/events{/privacy}","received_events_url":"https://api.github.com/users/davidsayers/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T16:41:52Z","updated_at":"2015-06-25T16:41:52Z","body":"This is actually a problem with the Ridley gem and not Berkshelf. I see the same behaviour when running the following manually. \r\n\r\nhttps://github.com/berkshelf/berkshelf/blob/master/lib/berkshelf/uploader.rb#L55-L60"}}