{"action":"created","issue":{"url":"https://api.github.com/repos/Storj/storjshare-cli/issues/55","repository_url":"https://api.github.com/repos/Storj/storjshare-cli","labels_url":"https://api.github.com/repos/Storj/storjshare-cli/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/Storj/storjshare-cli/issues/55/comments","events_url":"https://api.github.com/repos/Storj/storjshare-cli/issues/55/events","html_url":"https://github.com/Storj/storjshare-cli/issues/55","id":154934392,"number":55,"title":"storjshare should exit when trying to start with a non-existent data directory","user":{"login":"lunokhod","id":8471949,"avatar_url":"https://avatars.githubusercontent.com/u/8471949?v=3","gravatar_id":"","url":"https://api.github.com/users/lunokhod","html_url":"https://github.com/lunokhod","followers_url":"https://api.github.com/users/lunokhod/followers","following_url":"https://api.github.com/users/lunokhod/following{/other_user}","gists_url":"https://api.github.com/users/lunokhod/gists{/gist_id}","starred_url":"https://api.github.com/users/lunokhod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunokhod/subscriptions","organizations_url":"https://api.github.com/users/lunokhod/orgs","repos_url":"https://api.github.com/users/lunokhod/repos","events_url":"https://api.github.com/users/lunokhod/events{/privacy}","received_events_url":"https://api.github.com/users/lunokhod/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Storj/storjshare-cli/labels/needs%20review","name":"needs review","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"gordonwritescode","id":1188875,"avatar_url":"https://avatars.githubusercontent.com/u/1188875?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonwritescode","html_url":"https://github.com/gordonwritescode","followers_url":"https://api.github.com/users/gordonwritescode/followers","following_url":"https://api.github.com/users/gordonwritescode/following{/other_user}","gists_url":"https://api.github.com/users/gordonwritescode/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonwritescode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonwritescode/subscriptions","organizations_url":"https://api.github.com/users/gordonwritescode/orgs","repos_url":"https://api.github.com/users/gordonwritescode/repos","events_url":"https://api.github.com/users/gordonwritescode/events{/privacy}","received_events_url":"https://api.github.com/users/gordonwritescode/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-05-15T22:28:29Z","updated_at":"2016-05-18T22:14:25Z","closed_at":"2016-05-18T19:15:26Z","body":"When starting storjshare with a non-existent data directory, the client enters the setup wizard mode. The ideal behavior would be to print an error that the directory doesn't exist and exit gracefully.\r\n\r\nFarmer: v3.0.2\r\nCore:   v0.6.13"},"comment":{"url":"https://api.github.com/repos/Storj/storjshare-cli/issues/comments/220174394","html_url":"https://github.com/Storj/storjshare-cli/issues/55#issuecomment-220174394","issue_url":"https://api.github.com/repos/Storj/storjshare-cli/issues/55","id":220174394,"user":{"login":"gordonwritescode","id":1188875,"avatar_url":"https://avatars.githubusercontent.com/u/1188875?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonwritescode","html_url":"https://github.com/gordonwritescode","followers_url":"https://api.github.com/users/gordonwritescode/followers","following_url":"https://api.github.com/users/gordonwritescode/following{/other_user}","gists_url":"https://api.github.com/users/gordonwritescode/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonwritescode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonwritescode/subscriptions","organizations_url":"https://api.github.com/users/gordonwritescode/orgs","repos_url":"https://api.github.com/users/gordonwritescode/repos","events_url":"https://api.github.com/users/gordonwritescode/events{/privacy}","received_events_url":"https://api.github.com/users/gordonwritescode/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T22:14:25Z","updated_at":"2016-05-18T22:14:25Z","body":"Ahhh... I see. So the datadir was something like `/mnt/mydrive`? I'm not sure how to get around that. The CLI would have no way of knowing if a drive is supposed to be mounted at a given location. All it knows is what the file system shows. I tend to think that handling this is out of scope and userland should make sure to start things in proper order.\r\n\r\nHow would you expect the CLI to behave when creating a datadir/configuration for the first time? User needs to manually create the directory? How about the default directory (`~/.storjshare`)? Create it automatically, but require an existing directory in other cases?"}}