{"action":"created","issue":{"url":"https://api.github.com/repos/iojs/io.js/issues/1673","labels_url":"https://api.github.com/repos/iojs/io.js/issues/1673/labels{/name}","comments_url":"https://api.github.com/repos/iojs/io.js/issues/1673/comments","events_url":"https://api.github.com/repos/iojs/io.js/issues/1673/events","html_url":"https://github.com/iojs/io.js/pull/1673","id":75279562,"number":1673,"title":"os: refine tmpdir() trailing slash stripping","user":{"login":"cjihrig","id":2512748,"avatar_url":"https://avatars.githubusercontent.com/u/2512748?v=3","gravatar_id":"","url":"https://api.github.com/users/cjihrig","html_url":"https://github.com/cjihrig","followers_url":"https://api.github.com/users/cjihrig/followers","following_url":"https://api.github.com/users/cjihrig/following{/other_user}","gists_url":"https://api.github.com/users/cjihrig/gists{/gist_id}","starred_url":"https://api.github.com/users/cjihrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjihrig/subscriptions","organizations_url":"https://api.github.com/users/cjihrig/orgs","repos_url":"https://api.github.com/users/cjihrig/repos","events_url":"https://api.github.com/users/cjihrig/events{/privacy}","received_events_url":"https://api.github.com/users/cjihrig/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/iojs/io.js/labels/os","name":"os","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-11T16:25:26Z","updated_at":"2015-05-13T14:07:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/iojs/io.js/pulls/1673","html_url":"https://github.com/iojs/io.js/pull/1673","diff_url":"https://github.com/iojs/io.js/pull/1673.diff","patch_url":"https://github.com/iojs/io.js/pull/1673.patch"},"body":"`os.tmpdir()` began stripping trailing slashes in b57cc51d8d3f4ad279591ae8fa6584ee22773b97. This causes problems if the temp directory is simply `'/'`. It also stripped trailing slashes without first determining which slash type is used by the current operating system. This commit only strips trailing slashes if another character precedes the slash. On Windows, it checks for `':'`, as not to strip slashes from something like `'C:\\'`.\r\n\r\nRelated to #1669."},"comment":{"url":"https://api.github.com/repos/iojs/io.js/issues/comments/101675076","html_url":"https://github.com/iojs/io.js/pull/1673#issuecomment-101675076","issue_url":"https://api.github.com/repos/iojs/io.js/issues/1673","id":101675076,"user":{"login":"tellnes","id":613729,"avatar_url":"https://avatars.githubusercontent.com/u/613729?v=3","gravatar_id":"","url":"https://api.github.com/users/tellnes","html_url":"https://github.com/tellnes","followers_url":"https://api.github.com/users/tellnes/followers","following_url":"https://api.github.com/users/tellnes/following{/other_user}","gists_url":"https://api.github.com/users/tellnes/gists{/gist_id}","starred_url":"https://api.github.com/users/tellnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tellnes/subscriptions","organizations_url":"https://api.github.com/users/tellnes/orgs","repos_url":"https://api.github.com/users/tellnes/repos","events_url":"https://api.github.com/users/tellnes/events{/privacy}","received_events_url":"https://api.github.com/users/tellnes/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T14:07:30Z","updated_at":"2015-05-13T14:07:30Z","body":"LGTM"}}