Bug 15274 - Auto-scan doesn't pick up content added to renamed folders
: Auto-scan doesn't pick up content added to renamed folders
Status: CLOSED FIXED
Product: SB Touch
Classification: Unclassified
Component: TinySC
: 7.5.0
: PC Windows XP
: P1 normal (vote)
: 7.5.0
Assigned To: Andy Grundman
: TinySC
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-09 19:09 UTC by Jim McAtee
Modified: 2010-04-08 17:26 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim McAtee 2009-12-09 19:09:20 UTC
r8202, using the network sharing of the Touch, in this case with an SD card for the library.

If I drag a folder into one that the Touch is aware of, then it picks it up and begins scanning the music files within the folder almost immediately.  But if I create a folder on the SD card by hand from within Windows Explorer (right-click > New > Folder, then rename it) and then copy into that folder, TinySC on the Touch never picks it up.
Comment 1 Jim McAtee 2009-12-09 20:31:40 UTC
I guess it's the renaming of the folder that confuses it.  Here's another test... Folder structure is:

artists/
../albums/
../../tracks

If I rename an existing artist folder, TinySC picks up the change quickly and I can still use My Music > Artist to browse the artist and his albums and play music.  But if I then drag a new album into that same renamed folder it fails to see it.
Comment 2 Jim McAtee 2010-01-04 16:20:54 UTC
While debugging another issue I've noticed that in BigSC the tracks table entries of content_type=dir are only added by Browse Music Folder, not during a scan.  Could that have any effect on the behavior of this bug?
Comment 3 Andy Grundman 2010-01-04 17:32:49 UTC
The TinySC scanner does find directories now, maybe it should also create content-type=dir entries to keep things consistent.  I still need to review more of the BMF code, too.
Comment 4 SVN Bot 2010-02-11 10:36:51 UTC
 == Auto-comment from SVN commit #30136 to the  repo by agrundman ==
 == https://svn.slimdevices.com/?view=revision&revision=30136 ==

Fixed bug 15274, improvements to inotify watcher, it wasn't properly handling watching of new or renamed directories. Also changed the way shutdown/restart of watching works to avoid recreating possibly thousands of watchers each time
Comment 5 Chris Owens 2010-04-08 17:26:21 UTC
This bug has been marked fixed in a released version of Squeezebox Server or the accompanying firmware or mysqueezebox.com release.

If you are still seeing this issue, please let us know!