|
|
@@ -102,14 +102,14 @@ size_t enumerateDir(char ***output, char *path, char *pattern) { |
|
|
|
|
|
int i = 0;
|
|
|
while (fno.fname[0] != 0 && fr == FR_OK) {
|
|
|
if (fno.fname[0] == '.') goto end;
|
|
|
if (fno.fname[0] == '.') goto next;
|
|
|
out = (char **)realloc(out, (i+1) * sizeof(char *));
|
|
|
out[i] = (char *)malloc(FF_LFN_BUF);
|
|
|
strcpy(out[i], pathb);
|
|
|
strcat(out[i], fno.fname);
|
|
|
pathb[pathlen+1] = 0;
|
|
|
i++;
|
|
|
end:
|
|
|
next:
|
|
|
f_findnext(&dp, &fno);
|
|
|
}
|
|
|
|
|
|
|
0 comments on commit
3ff2116