mattduck / gh2md

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

RuntimeError: Output directory already exists and has files in it: issues with --idempotent #43

Open gdha opened 1 year ago

gdha commented 1 year ago

I thought by using gh2md --multiple-files --idempotent --file-extension .gfm rear/rear issues the exsiting files in directory issues/ would be skipped. Seems when the issues directory is already present we get an error:

Traceback (most recent call last):
  File "/usr/local/bin/gh2md", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/gh2md/gh2md.py", line 799, in main
    raise RuntimeError(
RuntimeError: Output directory already exists and has files in it: issues