buckket / twtxt

Decentralised, minimalist microblogging service for hackers.
http://twtxt.readthedocs.org/en/stable/
MIT License
1.91k stars 79 forks source link

`twtxt quickstart` won't create parent directories #114

Closed adiabatic closed 8 years ago

adiabatic commented 8 years ago

Using twtxt 1.2.1 from Homebrew.

I tried to have the quickstart make the twtxt.txt file in a directory that didn't exist, and got this error:

➤ Please enter your desired nick [comatoast]: frogorbits
➤ Please enter the desired location for your twtxt file [~/twtxt.txt]: ~/Dropbox/Apps/twtxt/frogorbits.txt

➤ Do you want to follow the twtxt news feed? [Y/n]: 
Traceback (most recent call last):
  File "/usr/local/Cellar/twtxt/1.2.1/libexec/bin/twtxt", line 9, in <module>
    load_entry_point('twtxt==1.2.1', 'console_scripts', 'twtxt')()
  File "/usr/local/Cellar/twtxt/1.2.1/libexec/vendor/lib/python3.5/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/Cellar/twtxt/1.2.1/libexec/vendor/lib/python3.5/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/local/Cellar/twtxt/1.2.1/libexec/vendor/lib/python3.5/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/Cellar/twtxt/1.2.1/libexec/vendor/lib/python3.5/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/Cellar/twtxt/1.2.1/libexec/vendor/lib/python3.5/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/Cellar/twtxt/1.2.1/libexec/lib/python3.5/site-packages/twtxt/cli.py", line 262, in quickstart
    open(os.path.expanduser(twtfile), "a").close()
FileNotFoundError: [Errno 2] No such file or directory: '/Users/comatoast/Dropbox/Apps/twtxt/frogorbits.txt'

Low-priority, but it'd still be nice.