Peter-Lam / climbr

A utility to log, visualize, and highlight climbing strengths, weaknesses, and trends. Built using Python, ElasticSearch, Kibana, and Docker
https://www.peterqlam.com
MIT License
5 stars 1 forks source link

Make directories and files not tracked by git #31

Closed Peter-Lam closed 2 years ago

Peter-Lam commented 2 years ago

Since "Logs" and "Output" directories are ignored by git, the app needs to make these directories if they don't exists. Currently a fresh install results in an error like:

PS E:\GitHub-Projects\climbr-dev-work> poetry run cli export
Retrieving dashboards and related objects...
Exporting Kibana dashboard and objects...
Traceback (most recent call last):
  File "E:\GitHub-Projects\climbr-dev-work\common\common.py", line 383, in export_kibana
    with open(output, "w+") as file:
FileNotFoundError: [Errno 2] No such file or directory: 'E:\\GitHub-Projects\\climbr-dev-work\\data\\output\\climbr_2021-10-25_19-11-35.ndjson'

During handling of the above exception, another exception occurr