{"action":"opened","issue":{"url":"https://api.github.com/repos/atom/atom/issues/9963","labels_url":"https://api.github.com/repos/atom/atom/issues/9963/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/9963/comments","events_url":"https://api.github.com/repos/atom/atom/issues/9963/events","html_url":"https://github.com/atom/atom/issues/9963","id":120692335,"number":9963,"title":"When opening single file the project folder is the file instead of folder above file","user":{"login":"zacps","id":9827696,"avatar_url":"https://avatars.githubusercontent.com/u/9827696?v=3","gravatar_id":"","url":"https://api.github.com/users/zacps","html_url":"https://github.com/zacps","followers_url":"https://api.github.com/users/zacps/followers","following_url":"https://api.github.com/users/zacps/following{/other_user}","gists_url":"https://api.github.com/users/zacps/gists{/gist_id}","starred_url":"https://api.github.com/users/zacps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zacps/subscriptions","organizations_url":"https://api.github.com/users/zacps/orgs","repos_url":"https://api.github.com/users/zacps/repos","events_url":"https://api.github.com/users/zacps/events{/privacy}","received_events_url":"https://api.github.com/users/zacps/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-07T03:43:24Z","updated_at":"2015-12-07T03:43:24Z","closed_at":null,"body":"### Steps to reproduce:\r\n1. Remove all project folders.\r\n2. Open a file via: Right click open in atom, Open a file dialog in atom, opening file via command line.\r\n\r\n### Observed behavior:\r\nAtom shows the project folder as the file that was opened.\r\n\r\n### Expected behavior:\r\nAtom selects the folder above the file and uses it as the project folder.\r\n\r\n### Example\r\nOpened file ~/path/index.html\r\nAtom shows index.html as the project folder.\r\nAtom should show ~/path as the project folder.\r\n\r\n### Environment\r\nAtom 1.2.4 (Latest as of 07/12/2015\r\nWindows 8.1 64bit\r\nReproduced in safe mode (atom --safe)\r\n\r\n\r\n"}}