oops, put ignore_appledouble in wrong section

This commit is contained in:
Ron Pedde 2006-04-27 07:18:16 +00:00
parent e3ba86f03a
commit df264d56da

View File

@ -357,10 +357,13 @@ int scan_path(char *path) {
DPRINTF(E_WARN,L_SCAN,"Error statting: %s\n",strerror(errno)); DPRINTF(E_WARN,L_SCAN,"Error statting: %s\n",strerror(errno));
} else { } else {
if(sb.st_mode & S_IFDIR) { /* dir -- recurse */ if(sb.st_mode & S_IFDIR) { /* dir -- recurse */
if(conf_get_int("general","ignore_appledouble",1) && if(conf_get_int("scanning","ignore_appledouble",1) &&
((strcasecmp(pde->d_name,".AppleDouble") == 0) || ((strcasecmp(pde->d_name,".AppleDouble") == 0) ||
(strcasecmp(pde->d_name,".AppleDesktop") == 0))) { (strcasecmp(pde->d_name,".AppleDesktop") == 0))) {
DPRINTF(E_DBG,L_SCAN,"Skipping appledouble folder\n"); DPRINTF(E_DBG,L_SCAN,"Skipping appledouble folder\n");
} else if(conf_get_int("scanning","ignore_dotfiles",0) &&
pde->d_name[0] == '.') {
DPRINTF(E_DBG,L_SCAN,"Skipping dotfile\n");
} else { } else {
DPRINTF(E_DBG,L_SCAN,"Found %s.. recursing\n",pde->d_name); DPRINTF(E_DBG,L_SCAN,"Found %s.. recursing\n",pde->d_name);
scan_path(mp3_path); scan_path(mp3_path);