{"action":"created","issue":{"url":"https://api.github.com/repos/sintaxi/harp/issues/400","labels_url":"https://api.github.com/repos/sintaxi/harp/issues/400/labels{/name}","comments_url":"https://api.github.com/repos/sintaxi/harp/issues/400/comments","events_url":"https://api.github.com/repos/sintaxi/harp/issues/400/events","html_url":"https://github.com/sintaxi/harp/issues/400","id":56575510,"number":400,"title":"`harp compile -o ./` deletes all files in current directory","user":{"login":"parkerault","id":78856,"avatar_url":"https://avatars.githubusercontent.com/u/78856?v=3","gravatar_id":"","url":"https://api.github.com/users/parkerault","html_url":"https://github.com/parkerault","followers_url":"https://api.github.com/users/parkerault/followers","following_url":"https://api.github.com/users/parkerault/following{/other_user}","gists_url":"https://api.github.com/users/parkerault/gists{/gist_id}","starred_url":"https://api.github.com/users/parkerault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkerault/subscriptions","organizations_url":"https://api.github.com/users/parkerault/orgs","repos_url":"https://api.github.com/users/parkerault/repos","events_url":"https://api.github.com/users/parkerault/events{/privacy}","received_events_url":"https://api.github.com/users/parkerault/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-04T19:32:18Z","updated_at":"2015-05-23T19:04:40Z","closed_at":null,"body":"Reproduce\r\n````\r\nharp init my-project\r\ncd my-project\r\nharp compile -o ./\r\n````\r\nresult: project files are deleted :open_mouth: \r\n\r\nI understand this isn't a normal use case, but anything that lets a user unknowingly `rm -rf` a directory is pretty dangerous."},"comment":{"url":"https://api.github.com/repos/sintaxi/harp/issues/comments/104936704","html_url":"https://github.com/sintaxi/harp/issues/400#issuecomment-104936704","issue_url":"https://api.github.com/repos/sintaxi/harp/issues/400","id":104936704,"user":{"login":"kennethormandy","id":1581276,"avatar_url":"https://avatars.githubusercontent.com/u/1581276?v=3","gravatar_id":"","url":"https://api.github.com/users/kennethormandy","html_url":"https://github.com/kennethormandy","followers_url":"https://api.github.com/users/kennethormandy/followers","following_url":"https://api.github.com/users/kennethormandy/following{/other_user}","gists_url":"https://api.github.com/users/kennethormandy/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethormandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethormandy/subscriptions","organizations_url":"https://api.github.com/users/kennethormandy/orgs","repos_url":"https://api.github.com/users/kennethormandy/repos","events_url":"https://api.github.com/users/kennethormandy/events{/privacy}","received_events_url":"https://api.github.com/users/kennethormandy/received_events","type":"User","site_admin":false},"created_at":"2015-05-23T19:04:40Z","updated_at":"2015-05-23T19:04:40Z","body":"I’m really sorry about that @josh-egan. Not that it helps much right now, but I opened up a PR #449 for one approach, which prevents compiling into the source directory outright (when you have explicitly asked to compile into that directory rather than implicitly let Harp compile to `www/`).\r\n\r\nAlternatively, we could treat `harp compile -o ./` as really meaning `harp compile -o ./www`, which is probably the expected behaviour?"}}