Skip to content

Commit

Permalink
add pattern for lfs.dir on WIN32
Browse files Browse the repository at this point in the history
  • Loading branch information
uudiin committed Sep 16, 2016
1 parent 50919ed commit cdbb640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ static int dir_iter_factory (lua_State *L) {
if (strlen(path) > MAX_PATH-2)
luaL_error (L, "path too long: %s", path);
else
sprintf (d->pattern, "%s/*", path);
sprintf (d->pattern, "%s/%s", path, luaL_optstring(L, 2, "*"));
#else
d->dir = opendir (path);
if (d->dir == NULL)
Expand Down

0 comments on commit cdbb640

Please sign in to comment.