{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/directory/issues/84","repository_url":"https://api.github.com/repos/haskell/directory","labels_url":"https://api.github.com/repos/haskell/directory/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/haskell/directory/issues/84/comments","events_url":"https://api.github.com/repos/haskell/directory/issues/84/events","html_url":"https://github.com/haskell/directory/issues/84","id":339523620,"node_id":"MDU6SXNzdWUzMzk1MjM2MjA=","number":84,"title":"doesDirectoryExist \"\" changed behaviour","user":{"login":"dbdbdb","id":1822318,"node_id":"MDQ6VXNlcjE4MjIzMTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1822318?v=4","gravatar_id":"","url":"https://api.github.com/users/dbdbdb","html_url":"https://github.com/dbdbdb","followers_url":"https://api.github.com/users/dbdbdb/followers","following_url":"https://api.github.com/users/dbdbdb/following{/other_user}","gists_url":"https://api.github.com/users/dbdbdb/gists{/gist_id}","starred_url":"https://api.github.com/users/dbdbdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbdbdb/subscriptions","organizations_url":"https://api.github.com/users/dbdbdb/orgs","repos_url":"https://api.github.com/users/dbdbdb/repos","events_url":"https://api.github.com/users/dbdbdb/events{/privacy}","received_events_url":"https://api.github.com/users/dbdbdb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-09T16:35:57Z","updated_at":"2018-07-10T06:17:33Z","closed_at":null,"author_association":"NONE","body":"doesDirectoryExist for the empty string has changed behaviour and now say yes. I have some old code that stopped working when updating this lib.\r\n\r\nCouldn't see it documented so I guess it is a bug?"},"comment":{"url":"https://api.github.com/repos/haskell/directory/issues/comments/403712823","html_url":"https://github.com/haskell/directory/issues/84#issuecomment-403712823","issue_url":"https://api.github.com/repos/haskell/directory/issues/84","id":403712823,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzcxMjgyMw==","user":{"login":"dbdbdb","id":1822318,"node_id":"MDQ6VXNlcjE4MjIzMTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1822318?v=4","gravatar_id":"","url":"https://api.github.com/users/dbdbdb","html_url":"https://github.com/dbdbdb","followers_url":"https://api.github.com/users/dbdbdb/followers","following_url":"https://api.github.com/users/dbdbdb/following{/other_user}","gists_url":"https://api.github.com/users/dbdbdb/gists{/gist_id}","starred_url":"https://api.github.com/users/dbdbdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbdbdb/subscriptions","organizations_url":"https://api.github.com/users/dbdbdb/orgs","repos_url":"https://api.github.com/users/dbdbdb/repos","events_url":"https://api.github.com/users/dbdbdb/events{/privacy}","received_events_url":"https://api.github.com/users/dbdbdb/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T06:17:33Z","updated_at":"2018-07-10T06:17:33Z","author_association":"NONE","body":"I've never seen that semantic in any other language so it would come as a surprise for most I guess.\r\n\r\nFor example these languages return False for \"\" and True for \".\":\r\n\r\nBash:  [ -d \"\" ]\r\nPython: os.path.isdir(\"\")\r\nPHP: is_dir(\"\")\r\nPerl: -d \"\"\r\nRuby: File.directory?(\"\")\r\nC/C++: stat(\"\", &s) followed by S_ISDIR(s.st_mode) (for empty string stat() return ENOENT)\r\nJava: file = new File(\"\") followed by file.isDirectory()\r\n\r\nSo it should at least be clearly documented.\r\n"}}
{"actor":{"display_login":"dbdbdb"}}