{"action":"closed","issue":{"url":"https://api.github.com/repos/k-next/kirby/issues/1140","repository_url":"https://api.github.com/repos/k-next/kirby","labels_url":"https://api.github.com/repos/k-next/kirby/issues/1140/labels{/name}","comments_url":"https://api.github.com/repos/k-next/kirby/issues/1140/comments","events_url":"https://api.github.com/repos/k-next/kirby/issues/1140/events","html_url":"https://github.com/k-next/kirby/issues/1140","id":374319184,"node_id":"MDU6SXNzdWUzNzQzMTkxODQ=","number":1140,"title":"[Toolkit] Dir::dirs and Dir::files don't work","user":{"login":"rasteiner","id":6684137,"node_id":"MDQ6VXNlcjY2ODQxMzc=","avatar_url":"https://avatars3.githubusercontent.com/u/6684137?v=4","gravatar_id":"","url":"https://api.github.com/users/rasteiner","html_url":"https://github.com/rasteiner","followers_url":"https://api.github.com/users/rasteiner/followers","following_url":"https://api.github.com/users/rasteiner/following{/other_user}","gists_url":"https://api.github.com/users/rasteiner/gists{/gist_id}","starred_url":"https://api.github.com/users/rasteiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasteiner/subscriptions","organizations_url":"https://api.github.com/users/rasteiner/orgs","repos_url":"https://api.github.com/users/rasteiner/repos","events_url":"https://api.github.com/users/rasteiner/events{/privacy}","received_events_url":"https://api.github.com/users/rasteiner/received_events","type":"User","site_admin":false},"labels":[{"id":848081540,"node_id":"MDU6TGFiZWw4NDgwODE1NDA=","url":"https://api.github.com/repos/k-next/kirby/labels/type:%20bug%20%F0%9F%90%9B","name":"type: bug 🐛","color":"E91E63","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/k-next/kirby/milestones/17","html_url":"https://github.com/k-next/kirby/milestone/17","labels_url":"https://api.github.com/repos/k-next/kirby/milestones/17/labels","id":3439090,"node_id":"MDk6TWlsZXN0b25lMzQzOTA5MA==","number":17,"title":"Beta","description":"","creator":{"login":"distantnative","id":3788865,"node_id":"MDQ6VXNlcjM3ODg4NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/3788865?v=4","gravatar_id":"","url":"https://api.github.com/users/distantnative","html_url":"https://github.com/distantnative","followers_url":"https://api.github.com/users/distantnative/followers","following_url":"https://api.github.com/users/distantnative/following{/other_user}","gists_url":"https://api.github.com/users/distantnative/gists{/gist_id}","starred_url":"https://api.github.com/users/distantnative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/distantnative/subscriptions","organizations_url":"https://api.github.com/users/distantnative/orgs","repos_url":"https://api.github.com/users/distantnative/repos","events_url":"https://api.github.com/users/distantnative/events{/privacy}","received_events_url":"https://api.github.com/users/distantnative/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":355,"state":"open","created_at":"2018-06-20T15:49:09Z","updated_at":"2018-10-26T11:59:57Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-10-26T10:18:21Z","updated_at":"2018-10-26T11:59:57Z","closed_at":"2018-10-26T11:59:57Z","author_association":"NONE","body":"referring to this: https://github.com/k-next/kirby/blob/master/src/Toolkit/Dir.php\r\n\r\nBoth methods use `Dir::read` to get the initial set of files in a directory. \r\n\r\n`Dir::read` however doesn't return the full path to the subdirectories, but only their name (because that's what scandir does). \r\nTherefore the subsequent \"is_dir\" check doesn't find the directories passed to it, unless the passed dir happens to be the current working directory (that's why the test doesn't fail).\r\n\r\n"}}
{"actor":{"display_login":"bastianallgeier"}}