{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/9378","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/9378/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/9378/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/9378/events","html_url":"https://github.com/nodejs/node/issues/9378","id":186285053,"number":9378,"title":"readdirSync of drive letter lists items of cwd","user":{"login":"cosmo0","id":3973850,"avatar_url":"https://avatars.githubusercontent.com/u/3973850?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmo0","html_url":"https://github.com/cosmo0","followers_url":"https://api.github.com/users/cosmo0/followers","following_url":"https://api.github.com/users/cosmo0/following{/other_user}","gists_url":"https://api.github.com/users/cosmo0/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmo0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmo0/subscriptions","organizations_url":"https://api.github.com/users/cosmo0/orgs","repos_url":"https://api.github.com/users/cosmo0/repos","events_url":"https://api.github.com/users/cosmo0/events{/privacy}","received_events_url":"https://api.github.com/users/cosmo0/received_events","type":"User","site_admin":false},"labels":[{"id":355184446,"url":"https://api.github.com/repos/nodejs/node/labels/docs-requested","name":"docs-requested","color":"f9d0c4","default":false},{"id":155435785,"url":"https://api.github.com/repos/nodejs/node/labels/fs","name":"fs","color":"0052cc","default":false},{"id":202120392,"url":"https://api.github.com/repos/nodejs/node/labels/good%20first%20contribution","name":"good first contribution","color":"bfdadc","default":false},{"id":166236401,"url":"https://api.github.com/repos/nodejs/node/labels/windows","name":"windows","color":"9944dd","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-10-31T13:37:45Z","updated_at":"2016-11-04T15:55:02Z","closed_at":null,"body":"* **Version**: v6.9.1\r\n* **Platform**: Windows 8.1 x64\r\n\r\nReaddirSync behavior depends on the current working directory (cwd/pwd) if we pass a drive letter with or without a trailing \"\\\".\r\n\r\nIt's very easy to reproduce. Here, I am on \"d:\" drive, and I have a \"d:\\Temp\" folder, containing \"A\" and \"B\" sub-folders.\r\n\r\n```\r\nD:\\Temp>  gci | % { $_.Name }\r\nA\r\nB\r\n\r\nD:\\Temp> node\r\n> var fs = require('fs');\r\nundefined\r\n> fs.readdirSync('d:')\r\n[ 'A', 'B' ]\r\n> fs.readdirSync('d:\\\\')\r\n[ '$RECYCLE.BIN',\r\n  'Cache',\r\n  'DEV',\r\n  'Installers',\r\n  'log',\r\n  'pagefile.sys',\r\n  'System Volume Information',\r\n  'Temp',\r\n  'VM' ]\r\n> .exit\r\nD:\\Temp>\r\n```\r\n\r\nIt's a very suprising behavior, and more importantly, it's not documented if expected."},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/258470587","html_url":"https://github.com/nodejs/node/issues/9378#issuecomment-258470587","issue_url":"https://api.github.com/repos/nodejs/node/issues/9378","id":258470587,"user":{"login":"S-YOU","id":1001175,"avatar_url":"https://avatars.githubusercontent.com/u/1001175?v=3","gravatar_id":"","url":"https://api.github.com/users/S-YOU","html_url":"https://github.com/S-YOU","followers_url":"https://api.github.com/users/S-YOU/followers","following_url":"https://api.github.com/users/S-YOU/following{/other_user}","gists_url":"https://api.github.com/users/S-YOU/gists{/gist_id}","starred_url":"https://api.github.com/users/S-YOU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/S-YOU/subscriptions","organizations_url":"https://api.github.com/users/S-YOU/orgs","repos_url":"https://api.github.com/users/S-YOU/repos","events_url":"https://api.github.com/users/S-YOU/events{/privacy}","received_events_url":"https://api.github.com/users/S-YOU/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T15:55:02Z","updated_at":"2016-11-04T15:55:02Z","body":"```\r\n> ls -l /tmp\r\nlrwxr-xr-x@ 1 root  wheel  11 10 oct 15:13 /tmp -> private/tmp\r\n```\r\nLinks are the files, so that is the correct behavior, imo.\r\n"}}
{"actor":{"display_login":"S-YOU"}}