{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/4350","repository_url":"https://api.github.com/repos/jruby/jruby","labels_url":"https://api.github.com/repos/jruby/jruby/issues/4350/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/4350/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/4350/events","html_url":"https://github.com/jruby/jruby/issues/4350","id":192911756,"number":4350,"title":"File.directory? of a uri:classpath resources ending in \"/\" incorrectly returns false","user":{"login":"the-michael-toy","id":2223707,"avatar_url":"https://avatars.githubusercontent.com/u/2223707?v=3","gravatar_id":"","url":"https://api.github.com/users/the-michael-toy","html_url":"https://github.com/the-michael-toy","followers_url":"https://api.github.com/users/the-michael-toy/followers","following_url":"https://api.github.com/users/the-michael-toy/following{/other_user}","gists_url":"https://api.github.com/users/the-michael-toy/gists{/gist_id}","starred_url":"https://api.github.com/users/the-michael-toy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-michael-toy/subscriptions","organizations_url":"https://api.github.com/users/the-michael-toy/orgs","repos_url":"https://api.github.com/users/the-michael-toy/repos","events_url":"https://api.github.com/users/the-michael-toy/events{/privacy}","received_events_url":"https://api.github.com/users/the-michael-toy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-01T17:30:03Z","updated_at":"2016-12-13T20:39:41Z","closed_at":null,"body":"### Environment\r\n\r\nProvide at least:\r\n* jruby 9.1.5.0 (2.3.1) 2016-09-07 036ce39 Java HotSpot(TM) 64-Bit Server VM 25.112-b16 on 1.8.0_112-b16 +jit [darwin-x86_64]\r\n* Darwin Quindici.local 16.1.0 Darwin Kernel Version 16.1.0: Thu Oct 13 21:26:57 PDT 2016; root:xnu-3789.21.3~60/RELEASE_X86_64 x86_64\r\n\r\n### Bug description\r\n\r\n```Ruby\r\n  here = File.dirname(__FILE__)\r\n  FileUtils.cp_r(File.join(here, \".\"), somewhere_else)\r\n```\r\n\r\nRun from the file system the `cp_r` works as expected. If you run from a jar, you get an exception\r\n\r\nThis used to work in 1.7 and was discovered when testing our app under 9000.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/266855158","html_url":"https://github.com/jruby/jruby/issues/4350#issuecomment-266855158","issue_url":"https://api.github.com/repos/jruby/jruby/issues/4350","id":266855158,"user":{"login":"the-michael-toy","id":2223707,"avatar_url":"https://avatars.githubusercontent.com/u/2223707?v=3","gravatar_id":"","url":"https://api.github.com/users/the-michael-toy","html_url":"https://github.com/the-michael-toy","followers_url":"https://api.github.com/users/the-michael-toy/followers","following_url":"https://api.github.com/users/the-michael-toy/following{/other_user}","gists_url":"https://api.github.com/users/the-michael-toy/gists{/gist_id}","starred_url":"https://api.github.com/users/the-michael-toy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-michael-toy/subscriptions","organizations_url":"https://api.github.com/users/the-michael-toy/orgs","repos_url":"https://api.github.com/users/the-michael-toy/repos","events_url":"https://api.github.com/users/the-michael-toy/events{/privacy}","received_events_url":"https://api.github.com/users/the-michael-toy/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T20:39:41Z","updated_at":"2016-12-13T20:39:41Z","body":"Debugging JRuby as it processes this, the failing code is now ...\r\n\r\n```\r\nhere = File.dirname(__FILE__) + \"/\"\r\nputs File.directory?(here) ? \"PASS -- #{here} is a directory\" : \"FAIL !! #{here} is not a directory\"\r\n```\r\n"}}
{"actor":{"display_login":"the-michael-toy"}}