(_scan): Prompt for creating the folder unless --create was given.
Showing
1 changed file
with
3 additions
and
2 deletions
... | @@ -280,9 +280,10 @@ _scan (const char *name, int depth) | ... | @@ -280,9 +280,10 @@ _scan (const char *name, int depth) |
280 | 280 | ||
281 | dir = opendir (name); | 281 | dir = opendir (name); |
282 | 282 | ||
283 | if (!dir && errno == ENOENT && create_flag) | 283 | if (!dir && errno == ENOENT) |
284 | { | 284 | { |
285 | mh_check_folder (name, 0); | 285 | if (mh_check_folder (name, !create_flag)) |
286 | return; | ||
286 | dir = opendir (name); | 287 | dir = opendir (name); |
287 | } | 288 | } |
288 | 289 | ... | ... |
-
Please register or sign in to post a comment