made qse_glob() non-recursive and added dos support into it

This commit is contained in:
2012-09-01 16:05:40 +00:00
parent b673e79c8c
commit 78f6f709ee
2 changed files with 351 additions and 119 deletions

View File

@ -14,7 +14,7 @@
static int print (const qse_cstr_t* path, void* ctx)
{
qse_printf (QSE_T("%.*s\n"), (int)path->len, path->ptr);
qse_printf (QSE_T("[%.*s]\n"), (int)path->len, path->ptr);
return 0;
}
@ -24,7 +24,7 @@ static int glob_main (int argc, qse_char_t* argv[])
if (argc <= 1)
{
qse_fprintf (QSE_STDERR, QSE_T("Usage: %S file-pattern ...\n"), qse_basename(argv[0]));
qse_fprintf (QSE_STDERR, QSE_T("Usage: %s file-pattern ...\n"), qse_basename(argv[0]));
return -1;
}