Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twtxt quickstart won't create parent directories #114

Closed
adiabatic opened this issue Mar 18, 2016 · 0 comments
Closed

twtxt quickstart won't create parent directories #114

adiabatic opened this issue Mar 18, 2016 · 0 comments
Milestone

Comments

@adiabatic
Copy link

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.

@buckket buckket added this to the 1.3.0 milestone Mar 18, 2016
buckket added a commit that referenced this issue Mar 30, 2016
+ allow setting a custom config file location (closes #112)
* create all non-existent directories (closes #114)
* ask before overwriting any files (closes #113)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants