commit 81ec83e8de748a975958f3a5e6c8b3eeea90fc82 parent 64043edbfce464f0d829896ed94a75b9542ef1de Author: Nihal Jere <nihal@nihaljere.xyz> Date: Thu, 18 Feb 2021 18:15:33 -0600 http.c: don't mkdirs before writing to file Diffstat:
M | http.c | | | 2 | -- |
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/http.c b/http.c @@ -435,8 +435,6 @@ http_fetch(char *loc, char *path) strcpy(url, loc); - mkdirs(dirname(path)); - if ((dest = fopen(path, "w")) == NULL) { die("%s: failed to open %s:", __func__, path); }