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

-o, --output flag doesn't create output directory for log file if it doesn't exist already #106

Open
GlenNicholls opened this issue Mar 23, 2022 · 0 comments
Assignees
Labels
bug Something isn't working needs triage Issue needs triaging

Comments

@GlenNicholls
Copy link

Environment

  • interrogate version(s): 1.5.0
  • Python version(s): 3.6-3.9

Description of the bug

When using the -o, --output flag, interrogate doesn't create the parent(s) of the file if they don't already exist:

$interrogate -vv -o build/coverage/docstring_coverage.log dir/
<traceback>
FileNotFoundError: [Errno 2] No such file or directory: 'build/coverage/docstring_coverage.log'

What you expected to happen

I would expect that interrogate would create the parent directories that do not exist (e.g. in this case build/coverage/.

@GlenNicholls GlenNicholls added bug Something isn't working needs triage Issue needs triaging labels Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Issue needs triaging
Projects
None yet
Development

No branches or pull requests

2 participants