mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +00:00
ignore dotted files/dirs including '.' and '..'
This commit is contained in:
parent
c551bca665
commit
200809f430
@ -67,7 +67,7 @@ NSArray* ra_ios_list_directory(NSString* path)
|
||||
|
||||
for(struct dirent* item = readdir(dir); item; item = readdir(dir))
|
||||
{
|
||||
if (strcmp(item->d_name, ".") == 0 || strcmp(item->d_name, "..") == 0)
|
||||
if (strncmp(item->d_name, ".", 1) == 0)
|
||||
continue;
|
||||
|
||||
cpath[cpath_end] = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user