Fix directory crawling on symlink-capable systems
This commit is contained in:
parent
209dfca35f
commit
5a368922c9
|
@ -69,7 +69,7 @@ static void list_files(const char *filepath, ListCallback list_callback)
|
|||
list_callback(rdir,EListCallbackArg_Item);
|
||||
printf("cflash added %s\n",fname);
|
||||
|
||||
if (retro_dirent_is_dir(rdir, filepath) && (strcmp(fname, ".")) && strcmp(fname, ".."))
|
||||
if (retro_dirent_is_dir(rdir, fname) && (strcmp(fname, ".")) && strcmp(fname, ".."))
|
||||
{
|
||||
std::string subdir = (std::string)filepath + path_default_slash() + fname;
|
||||
list_files(subdir.c_str(), list_callback);
|
||||
|
|
Loading…
Reference in New Issue