1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Autocreate directories needed to download a file.

This commit is contained in:
Laurent MONIN 2006-01-04 21:52:15 +01:00 committed by Laurent MONIN
parent 73a99b6b99
commit c39a30ca49

View File

@ -572,6 +572,9 @@ create_download_file_do(struct terminal *term, unsigned char *file, void *data,
wd = get_cwd();
set_cwd(term->cwd);
/* Create parent directories if needed. */
mkalldirs(file);
/* O_APPEND means repositioning at the end of file before each write(),
* thus ignoring seek()s and that can hide mysterious bugs. IMHO.
* --pasky */