Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Fix the unit test and open a giant hole everywhere. Parent comment
The snippet breaks for paths starting with a minus, as mkdir will interpret those as another option.
The solution is:
subprocess.run(["mkdir", "-p", "--", path])
There are no comments on this comment yet.
The snippet breaks for paths starting with a minus, as mkdir will interpret those as another option.
The solution is: