{"action":"created","issue":{"url":"https://api.github.com/repos/olegkrivtsov/openbook/issues/3","repository_url":"https://api.github.com/repos/olegkrivtsov/openbook","labels_url":"https://api.github.com/repos/olegkrivtsov/openbook/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/olegkrivtsov/openbook/issues/3/comments","events_url":"https://api.github.com/repos/olegkrivtsov/openbook/issues/3/events","html_url":"https://github.com/olegkrivtsov/openbook/issues/3","id":190581981,"number":3,"title":"Trying to mkdir on a file","user":{"login":"bitwombat","id":3937658,"avatar_url":"https://avatars.githubusercontent.com/u/3937658?v=3","gravatar_id":"","url":"https://api.github.com/users/bitwombat","html_url":"https://github.com/bitwombat","followers_url":"https://api.github.com/users/bitwombat/followers","following_url":"https://api.github.com/users/bitwombat/following{/other_user}","gists_url":"https://api.github.com/users/bitwombat/gists{/gist_id}","starred_url":"https://api.github.com/users/bitwombat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitwombat/subscriptions","organizations_url":"https://api.github.com/users/bitwombat/orgs","repos_url":"https://api.github.com/users/bitwombat/repos","events_url":"https://api.github.com/users/bitwombat/events{/privacy}","received_events_url":"https://api.github.com/users/bitwombat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-20T20:39:03Z","updated_at":"2016-11-21T01:58:52Z","closed_at":null,"body":"in src/OpenBook/BookGenerator.php, you try to:\r\n\r\n````\r\nmkdir(dirname($dstFile), 775, true);\r\n````\r\nBut, $dstFile is a file, not a dir, resulting in:\r\n\r\n````\r\nPHP Warning:  mkdir(): Permission denied in /home/gbell2/zf3_book/openbook/src/OpenBook/BookGenerator.php on line 516\r\n````\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/olegkrivtsov/openbook/issues/comments/261825136","html_url":"https://github.com/olegkrivtsov/openbook/issues/3#issuecomment-261825136","issue_url":"https://api.github.com/repos/olegkrivtsov/openbook/issues/3","id":261825136,"user":{"login":"olegkrivtsov","id":4676023,"avatar_url":"https://avatars.githubusercontent.com/u/4676023?v=3","gravatar_id":"","url":"https://api.github.com/users/olegkrivtsov","html_url":"https://github.com/olegkrivtsov","followers_url":"https://api.github.com/users/olegkrivtsov/followers","following_url":"https://api.github.com/users/olegkrivtsov/following{/other_user}","gists_url":"https://api.github.com/users/olegkrivtsov/gists{/gist_id}","starred_url":"https://api.github.com/users/olegkrivtsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegkrivtsov/subscriptions","organizations_url":"https://api.github.com/users/olegkrivtsov/orgs","repos_url":"https://api.github.com/users/olegkrivtsov/repos","events_url":"https://api.github.com/users/olegkrivtsov/events{/privacy}","received_events_url":"https://api.github.com/users/olegkrivtsov/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T01:58:52Z","updated_at":"2016-11-21T01:58:52Z","body":"Try to use `0775` instead of `775`. If doesn't help, than you just don't have permissions for creating the directory. Try `sudo php openbook.php /path/to/your/book/directory`"}}
{"actor":{"display_login":"olegkrivtsov"}}