mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Autocreate directories needed to download a file.
This commit is contained in:
parent
73a99b6b99
commit
c39a30ca49
@ -572,6 +572,9 @@ create_download_file_do(struct terminal *term, unsigned char *file, void *data,
|
|||||||
wd = get_cwd();
|
wd = get_cwd();
|
||||||
set_cwd(term->cwd);
|
set_cwd(term->cwd);
|
||||||
|
|
||||||
|
/* Create parent directories if needed. */
|
||||||
|
mkalldirs(file);
|
||||||
|
|
||||||
/* O_APPEND means repositioning at the end of file before each write(),
|
/* O_APPEND means repositioning at the end of file before each write(),
|
||||||
* thus ignoring seek()s and that can hide mysterious bugs. IMHO.
|
* thus ignoring seek()s and that can hide mysterious bugs. IMHO.
|
||||||
* --pasky */
|
* --pasky */
|
||||||
|
Loading…
Reference in New Issue
Block a user