{"action":"created","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/3963","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/3963/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/3963/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/3963/events","html_url":"https://github.com/nim-lang/Nim/pull/3963","id":140222317,"number":3963,"title":"Don't try to read directories as files","user":{"login":"def-","id":2335377,"avatar_url":"https://avatars.githubusercontent.com/u/2335377?v=3","gravatar_id":"","url":"https://api.github.com/users/def-","html_url":"https://github.com/def-","followers_url":"https://api.github.com/users/def-/followers","following_url":"https://api.github.com/users/def-/following{/other_user}","gists_url":"https://api.github.com/users/def-/gists{/gist_id}","starred_url":"https://api.github.com/users/def-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/def-/subscriptions","organizations_url":"https://api.github.com/users/def-/orgs","repos_url":"https://api.github.com/users/def-/repos","events_url":"https://api.github.com/users/def-/events{/privacy}","received_events_url":"https://api.github.com/users/def-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-11T16:04:18Z","updated_at":"2016-03-12T14:13:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nim-lang/Nim/pulls/3963","html_url":"https://github.com/nim-lang/Nim/pull/3963","diff_url":"https://github.com/nim-lang/Nim/pull/3963.diff","patch_url":"https://github.com/nim-lang/Nim/pull/3963.patch"},"body":"Right now, at least on Linux, you can call a directory `foo.nim` and compile the directory, which is interpreted as an empty file. This is rather strange, so I think it should be disabled."},"comment":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/comments/195748513","html_url":"https://github.com/nim-lang/Nim/pull/3963#issuecomment-195748513","issue_url":"https://api.github.com/repos/nim-lang/Nim/issues/3963","id":195748513,"user":{"login":"Araq","id":287816,"avatar_url":"https://avatars.githubusercontent.com/u/287816?v=3","gravatar_id":"","url":"https://api.github.com/users/Araq","html_url":"https://github.com/Araq","followers_url":"https://api.github.com/users/Araq/followers","following_url":"https://api.github.com/users/Araq/following{/other_user}","gists_url":"https://api.github.com/users/Araq/gists{/gist_id}","starred_url":"https://api.github.com/users/Araq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Araq/subscriptions","organizations_url":"https://api.github.com/users/Araq/orgs","repos_url":"https://api.github.com/users/Araq/repos","events_url":"https://api.github.com/users/Araq/events{/privacy}","received_events_url":"https://api.github.com/users/Araq/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T14:13:28Z","updated_at":"2016-03-12T14:13:28Z","body":"Well for me thats a severe Linux bug and I don't want to slow down our ``open`` stdlib implementation with a stupid ``fileExists`` check. It's called ``fopen`` for *file open*, not for \"open something else and read garbage\". This means that every tool on Linux written in C, using only Ansi C file routines is broken."}}