{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/metalsmith-permalinks/issues/25","labels_url":"https://api.github.com/repos/segmentio/metalsmith-permalinks/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/metalsmith-permalinks/issues/25/comments","events_url":"https://api.github.com/repos/segmentio/metalsmith-permalinks/issues/25/events","html_url":"https://github.com/segmentio/metalsmith-permalinks/issues/25","id":48168652,"number":25,"title":"Generated paths point to root of my HDD","user":{"login":"vorg","id":171001,"avatar_url":"https://avatars.githubusercontent.com/u/171001?v=3","gravatar_id":"","url":"https://api.github.com/users/vorg","html_url":"https://github.com/vorg","followers_url":"https://api.github.com/users/vorg/followers","following_url":"https://api.github.com/users/vorg/following{/other_user}","gists_url":"https://api.github.com/users/vorg/gists{/gist_id}","starred_url":"https://api.github.com/users/vorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vorg/subscriptions","organizations_url":"https://api.github.com/users/vorg/orgs","repos_url":"https://api.github.com/users/vorg/repos","events_url":"https://api.github.com/users/vorg/events{/privacy}","received_events_url":"https://api.github.com/users/vorg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-11-08T15:20:25Z","updated_at":"2015-07-21T12:28:33Z","closed_at":null,"body":"I'm trying to build my project by following this [tutorial](http://www.robinthrift.com/posts/metalsmith-part-2-shaping-the-metal/) and I get this error:\r\n\r\n```javascript\r\n{ [Error: EACCES, mkdir '/marcinignac-com'] errno: 3, code: 'EACCES', path: '/marcinignac-com' }\r\n```\r\n\r\nObviously node doesn't have access to crate folders in root of my HDD\r\n\r\nMy project tree\r\n\r\n```\r\ncom-marcinignac\r\n├── build\r\n├── build.js\r\n├── package.json\r\n├── src\r\n│   ├── css\r\n│   │   └── main.css\r\n│   ├── index.md\r\n│   └── projects\r\n│       ├── cindermedusae\r\n│       │   ├── cindermedusae.md\r\n│       │   └── img\r\n│       │       └── cindermedusae_01.jpg\r\n│       ├── fibers\r\n│       │   └── fibers.md\r\n│       └── ucc-organism\r\n│           └── ucc-organism.md\r\n└── templates\r\n    ├── index.html\r\n    ├── partials\r\n    │   ├── footer.html\r\n    │   └── header.html\r\n    └── post.html\r\n```\r\n\r\nUsed modules\r\n```\r\n    \"handlebars\": \"^2.0.0\",\r\n    \"metalsmith\": \"^1.0.1\",\r\n    \"metalsmith-collections\": \"^0.6.0\",\r\n    \"metalsmith-drafts\": \"0.0.1\",\r\n    \"metalsmith-markdown\": \"^0.2.1\",\r\n    \"metalsmith-permalinks\": \"^0.3.2\",\r\n    \"metalsmith-templates\": \"^0.6.0\",\r\n    \"metalsmith-watch\": \"^0.1.1\"\r\n```\r\n\r\nMetalsmith config\r\n\r\n```javascript\r\nmetalsmith(__dirname)\r\n  .use(collections({\r\n    projects: {\r\n      pattern: 'projects/**/*.md'\r\n    }\r\n  }))\r\n  .use(markdown())\r\n  .use(permalinks({\r\n    pattern: ':collection/:title',\r\n    relative: false\r\n  }))\r\n  .use(templates('handlebars'))\r\n  .destination('./build')\r\n  .build(function(err){\r\n    if (err) throw err;\r\n  });\r\n```"},"comment":{"url":"https://api.github.com/repos/segmentio/metalsmith-permalinks/issues/comments/123289733","html_url":"https://github.com/segmentio/metalsmith-permalinks/issues/25#issuecomment-123289733","issue_url":"https://api.github.com/repos/segmentio/metalsmith-permalinks/issues/25","id":123289733,"user":{"login":"donofkarma","id":835629,"avatar_url":"https://avatars.githubusercontent.com/u/835629?v=3","gravatar_id":"","url":"https://api.github.com/users/donofkarma","html_url":"https://github.com/donofkarma","followers_url":"https://api.github.com/users/donofkarma/followers","following_url":"https://api.github.com/users/donofkarma/following{/other_user}","gists_url":"https://api.github.com/users/donofkarma/gists{/gist_id}","starred_url":"https://api.github.com/users/donofkarma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donofkarma/subscriptions","organizations_url":"https://api.github.com/users/donofkarma/orgs","repos_url":"https://api.github.com/users/donofkarma/repos","events_url":"https://api.github.com/users/donofkarma/events{/privacy}","received_events_url":"https://api.github.com/users/donofkarma/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T12:28:33Z","updated_at":"2015-07-21T12:28:33Z","body":"Just had this issue myself, found it to be a leading `/` in the pattern."}}