payload: {"action":"created","issue":{"url":"https://api.github.com/repos/jonschlinkert/delete-empty/issues/14","repository_url":"https://api.github.com/repos/jonschlinkert/delete-empty","labels_url":"https://api.github.com/repos/jonschlinkert/delete-empty/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/jonschlinkert/delete-empty/issues/14/comments","events_url":"https://api.github.com/repos/jonschlinkert/delete-empty/issues/14/events","html_url":"https://github.com/jonschlinkert/delete-empty/issues/14","id":505396480,"node_id":"MDU6SXNzdWU1MDUzOTY0ODA=","number":14,"title":"Version 3.0.0 doesnt seem to work.","user":{"login":"rodrigograca31","id":1134310,"node_id":"MDQ6VXNlcjExMzQzMTA=","avatar_url":"https://avatars2.githubusercontent.com/u/1134310?v=4","gravatar_id":"","url":"https://api.github.com/users/rodrigograca31","html_url":"https://github.com/rodrigograca31","followers_url":"https://api.github.com/users/rodrigograca31/followers","following_url":"https://api.github.com/users/rodrigograca31/following{/other_user}","gists_url":"https://api.github.com/users/rodrigograca31/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigograca31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigograca31/subscriptions","organizations_url":"https://api.github.com/users/rodrigograca31/orgs","repos_url":"https://api.github.com/users/rodrigograca31/repos","events_url":"https://api.github.com/users/rodrigograca31/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigograca31/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-10-10T17:01:22Z","updated_at":"2019-12-19T08:56:01Z","closed_at":null,"author_association":"NONE","body":"```javascript\r\ndeleteEmpty('foo/')\r\n  .then(deleted => console.log(deleted)) //=> ['foo/aa/', 'foo/a/cc/', 'foo/b/', 'foo/c/']\r\n  .catch(console.error);\r\n```\r\n\r\ndoes nothing to the folder if we are in version 3.0.0, outputs `undefined`"},"comment":{"url":"https://api.github.com/repos/jonschlinkert/delete-empty/issues/comments/567397472","html_url":"https://github.com/jonschlinkert/delete-empty/issues/14#issuecomment-567397472","issue_url":"https://api.github.com/repos/jonschlinkert/delete-empty/issues/14","id":567397472,"node_id":"MDEyOklzc3VlQ29tbWVudDU2NzM5NzQ3Mg==","user":{"login":"Nutropy","id":28302967,"node_id":"MDQ6VXNlcjI4MzAyOTY3","avatar_url":"https://avatars2.githubusercontent.com/u/28302967?v=4","gravatar_id":"","url":"https://api.github.com/users/Nutropy","html_url":"https://github.com/Nutropy","followers_url":"https://api.github.com/users/Nutropy/followers","following_url":"https://api.github.com/users/Nutropy/following{/other_user}","gists_url":"https://api.github.com/users/Nutropy/gists{/gist_id}","starred_url":"https://api.github.com/users/Nutropy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nutropy/subscriptions","organizations_url":"https://api.github.com/users/Nutropy/orgs","repos_url":"https://api.github.com/users/Nutropy/repos","events_url":"https://api.github.com/users/Nutropy/events{/privacy}","received_events_url":"https://api.github.com/users/Nutropy/received_events","type":"User","site_admin":false},"created_at":"2019-12-19T08:56:01Z","updated_at":"2019-12-19T08:56:01Z","author_association":"NONE","body":"I can confirm this issue.\r\nWhen using it with a relative path the `isValidDir` function returns false because of `startsWith(dir, cwd)` fails, where `dir`=resolved absolute path and `cwd`= relative part of it.\r\n\r\nIMHO it should have been checked with the `path-ends-with` package.\r\n"}}
other: {"actor":{"display_login":"Nutropy"}}