I noticed when running couchapp that sometimes I wouldn't get all of my attachments, especially the ones in subdirectories.
I tracked this down to the attached code; the callback from push gets called whenever pending_dirs is zero, but it doesn't take in to account that the callback from watch.walk could happen more times than there are attachments.
I noticed when running couchapp that sometimes I wouldn't get all of my attachments, especially the ones in subdirectories.
I tracked this down to the attached code; the callback from
push
gets called wheneverpending_dirs
is zero, but it doesn't take in to account that the callback fromwatch.walk
could happen more times than there are attachments.