mattduck / gh2md

Export Github repository issues, pull requests and comments to markdown.
MIT License
244 stars 45 forks source link

fix: use recursive mkdir #31

Closed milahu closed 2 years ago

milahu commented 2 years ago

error was

$ gh2md milahu/random archive/github/issues/ --multiple-files --file-extension .ghmd
[2022-07-08 07:36:26,970] [INFO] Creating output directory: archive/github/issues/
Traceback (most recent call last):
  File "/home/runner/.local/bin/gh2md", line 8, in <module>
    sys.exit(main())
  File "/home/runner/.local/lib/python3.8/site-packages/gh2md/gh2md.py", line 797, in main
    os.mkdir(args.output_path)
FileNotFoundError: [Errno 2] No such file or directory: 'archive/github/issues/'

workaround:

mkdir -p archive/github/issues/ || true
mattduck commented 2 years ago

Thanks!

mattduck commented 2 years ago

Released in 2.2.0

Mariusz73-creator commented 2 years ago

Jgvu