Commit a7b39b6
committed
Download: create directory before writing file
A recent change to exercism [1] allows it to preserve directory
structures in submissions. However, `exercism download` currently cannot
handle such submissions. For example, a submission with `dir/file.txt`
would attempt to write `dir/file.txt` without `dir` existing, and fail.
To fix this, we create any containing directories before writing files.
Fixes #277
[1] exercism/exercism@2dc984d1 parent b34026c commit a7b39b6
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
0 commit comments