mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 10:13:45 -04:00
fix the hidden directory thing
This commit is contained in:
parent
01180d60f1
commit
b02eed1195
@ -318,7 +318,7 @@ int scan_path(char *path) {
|
|||||||
if(!pde)
|
if(!pde)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if(pde->d_name[0] == '.') /* skip hidden and directories */
|
if(!strcmp(pde->d_name,".") || !strcmp(pde->d_name,".."))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
snprintf(relative_path,PATH_MAX,"%s/%s",path,pde->d_name);
|
snprintf(relative_path,PATH_MAX,"%s/%s",path,pde->d_name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user