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)
dir = opendir (name);
if (!dir && errno == ENOENT && create_flag)
if (!dir && errno == ENOENT)
{
mh_check_folder (name, 0);
if (mh_check_folder (name, !create_flag))
return;
dir = opendir (name);
}
......