{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/13763","labels_url":"https://api.github.com/repos/golang/go/issues/13763/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13763/comments","events_url":"https://api.github.com/repos/golang/go/issues/13763/events","html_url":"https://github.com/golang/go/issues/13763","id":124170771,"number":13763,"title":"os: Lstat failed on C:\\$Recycle.Bin","user":{"login":"chai2010","id":2295542,"avatar_url":"https://avatars.githubusercontent.com/u/2295542?v=3","gravatar_id":"","url":"https://api.github.com/users/chai2010","html_url":"https://github.com/chai2010","followers_url":"https://api.github.com/users/chai2010/followers","following_url":"https://api.github.com/users/chai2010/following{/other_user}","gists_url":"https://api.github.com/users/chai2010/gists{/gist_id}","starred_url":"https://api.github.com/users/chai2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chai2010/subscriptions","organizations_url":"https://api.github.com/users/chai2010/orgs","repos_url":"https://api.github.com/users/chai2010/repos","events_url":"https://api.github.com/users/chai2010/events{/privacy}","received_events_url":"https://api.github.com/users/chai2010/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/golang/go/labels/OS-Windows","name":"OS-Windows","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-29T06:37:00Z","updated_at":"2015-12-30T03:00:17Z","closed_at":null,"body":"go version devel +c7c7c70 Mon Dec 28 01:12:24 2015 +0000 windows/amd64\r\n\r\n```Go\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\t\"log\"\r\n\t\"os\"\r\n\t\"path/filepath\"\r\n)\r\n\r\nfunc main() {\r\n\tf, err := os.Open(\"C:\")\r\n\tif err != nil {\r\n\t\tlog.Fatal(\"os.Open:\", err)\r\n\t}\r\n\tdefer f.Close()\r\n\r\n\tnames, err := f.Readdirnames(-1)\r\n\tif err != nil {\r\n\t\tlog.Fatal(\"f.Readdirnames:\", err)\r\n\t}\r\n\r\n\tfor i, s := range names {\r\n\t\tfmt.Println(i, s)\r\n\t\tfilename := filepath.Join(\"C:\", s)\r\n\t\tfileInfo, err := os.Lstat(filename)\r\n\t\tif err != nil {\r\n\t\t\tlog.Fatal(\"os.Lstat:\", err)\r\n\t\t}\r\n\t\tfmt.Println(\"\\t\", fileInfo.IsDir())\r\n\t}\r\n}\r\n```\r\n\r\nerror:\r\nos.Lstat:GetFileAttributesEx C:$Recycle.Bin: The system cannot find the file specified.\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/167923532","html_url":"https://github.com/golang/go/issues/13763#issuecomment-167923532","issue_url":"https://api.github.com/repos/golang/go/issues/13763","id":167923532,"user":{"login":"gopherbot","id":8566911,"avatar_url":"https://avatars.githubusercontent.com/u/8566911?v=3","gravatar_id":"","url":"https://api.github.com/users/gopherbot","html_url":"https://github.com/gopherbot","followers_url":"https://api.github.com/users/gopherbot/followers","following_url":"https://api.github.com/users/gopherbot/following{/other_user}","gists_url":"https://api.github.com/users/gopherbot/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherbot/subscriptions","organizations_url":"https://api.github.com/users/gopherbot/orgs","repos_url":"https://api.github.com/users/gopherbot/repos","events_url":"https://api.github.com/users/gopherbot/events{/privacy}","received_events_url":"https://api.github.com/users/gopherbot/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T03:00:17Z","updated_at":"2015-12-30T03:00:17Z","body":"CL https://golang.org/cl/18184 mentions this issue."}}