mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 21:03:00 -05:00
fix the hidden directory thing
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user