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:
parent
73a99b6b99
commit
c39a30ca49
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user