Commit de88b2bb de88b2bb75370363e0f7942a3fac6dc369186dd2 by Sergey Poznyakoff

(_scan): Prompt for creating the folder unless --create was given.

1 parent a7219823
...@@ -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
......