Bugzilla – Bug 6372
Scanner including hidden directories
Last modified: 2010-03-08 21:00:30 UTC
Scanner appears be be including hidden directories in its scan, including the .AppleDouble directory. This is causing bogus entries to appear within SqueezeCenter.
Dot files should be excluded on any platform (Slim::Utils::Misc::readDirectory()). Are you sure these are included in your case? Could you please provide us with a scanner log file?
Created attachment 2539 [details] Scanner log
See attached log. Many examples of .AppleDouble directory reads.
The scan seems to use a different set of filters than Browse Music Folder - resulting in different files being indexed. That's no good. Will look into unifying this.
Created attachment 2546 [details] unify BMF & scan filters
change 15460 - please test
I updated tp 12-20 trunk then ran scan and noted totals. Replaced Misc.pm and Scanner.pm with files from change. Did a clear and rescan. Results were the same. The .AppleDouble files are still appearing.
The previous "fix" indeed didn't fix the filter applied when descending folders, sorry. Change 15528 hopefully does better. Could you please try again?
That appears to have fixed the problem. The AppleDouble directories are no longer appearing.
Great, thanks! Feel free to re-open if needed.
I spent a little time today trying to figure out why my SqueezeCenter 7 server shows one fewer album and nine fewer tracks than my SlimServer 6.5.5 server. The missing album is Metallica's "...And Justice for All", with the album folder name beginning with three dots. Is SC7 maybe thinking that this is intended to be a hidden folder? It doesn't show up when I browse the Music Folder either. The server is running on Windows. Could the change in behavior on Windows be related to the changes made for this bug?
Slim::Utils::Misc line 850. We should probably exclude that filter for Windows systems.
change 17472 - allow dot files in Windows
That did the job. Thanks Michael.
This bug is being closed since it was resolved for a version which is now released! Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html If you are still seeing this bug, please re-open it and we will consider it for a future release.
Hello. I'm new to bugzilla so excuse my ignorance. I'm using squeezeserver v7.4.2, r30215, Fri Feb 19 15:21:27 PST 2010) on perl 5.10.0. The problem I see is that the album "Metallica ...And Justice for All" does not scan. The "..." is in both the directory name and the mp3 tags. I haven't tried to debug this, simply searched the web and saw this as closed. Seems pretty straight forward. The simple workaround is to rename the album and rewrite the tags w/o the "..." (do both need to be done?). Not sure of the etiquette here, if you want me to open a new bug I guess I could.
Btw, a "better" workaround is to 'mv "...And Justice for All" " ...And Justice for All"'. The space is hardly noticeable in the gui and somewhat preserves the album name. Also, Linux butterbox 2.6.26-2-686 #1 SMP Thu May 28 15:39:35 UTC 2009 i686 GNU/Linux
No need to change any tags. But the leading dot in a file/folder name will make it hidden on Unixy file systems, thus is ignored. Thus you only need to change the file/folder name.