Bugzilla – Bug 4275
Scanner skips files marked as hidden in Windows
Last modified: 2008-12-18 11:11:39 UTC
After the recent upgrade to 6.5 my library which once contained over 7000 albums now shows as having 75. I have tried numerous "clear & rescan all" operations and never get more than 75. I set the sql/mysql/scan/import debug flags as suggest in a forum thread. When the scan starts I get a number of "Can't call method "print" on an undefined value at..." errors which I can post here if required, although I don't think these are significant as they only occur at the very beginning and the scan does then get going. However after a few minutes it seems to abort, leaving me with only the aforementioned 75 albums in the library. The log shows only the following: SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning' SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning' SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning' SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning' SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning' SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning' SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning' SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning' Import: Wiped all in-memory caches. As an addendum, I tried the latest nightly build on 6.5.1 with similar results - except it gets to 90 albums now before aborting.
I tracked down what was causing scanner to seemingly abort early. For some reason (unrelated) most of my music files were marked as 'hidden' (the 'h' attribute was set). This has always been the case and previous versions of SlimServer had no problem with them, but it seems as if the new separate scanner program skips over hidden files. Whether you want to treat this as a bug or not is up to you - although I think at least it should warn you (even if just in the log) why files are being skipped.
This is a feature. Files marked as hidden are skipped.
Fair enough - maybe it should be documented then, as this was a change from the previous behaviour.