You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran this rather naively today in a directory and noticed it copying non-markdown files to themselves, which seemed odd, so I hit CTRL+C to stop and take a look. It had deleted the contents of all files it had a chance to access before I stopped it with CTRL+C and left them with 0 filesize. Luckily the files were checked into git and I was able to retrieve them with a quick reset, but this seems like a rather scary issue.
The command I ran was:
generate-md --input . --output . --style github
The current directory had a few markdown files to convert, but subdirectories underneath had code files.
Entirely possible that I read the documentation incorrectly. In general though you probably don't want to modify existing files in the --input directory or any of its subdirectories.
The text was updated successfully, but these errors were encountered:
ahh good point, the intent is that the directories in --input and --output are different - e.g. rendering a git repo to a folder that will then be pushed to a s3 bucket
should add a check that --input and --output are not the same folder!
I ran this rather naively today in a directory and noticed it copying non-markdown files to themselves, which seemed odd, so I hit CTRL+C to stop and take a look. It had deleted the contents of all files it had a chance to access before I stopped it with CTRL+C and left them with 0 filesize. Luckily the files were checked into git and I was able to retrieve them with a quick reset, but this seems like a rather scary issue.
The command I ran was:
The current directory had a few markdown files to convert, but subdirectories underneath had code files.
Entirely possible that I read the documentation incorrectly. In general though you probably don't want to modify existing files in the --input directory or any of its subdirectories.
The text was updated successfully, but these errors were encountered: