Hmm.. it looks allright, to my limited understanding.

There are three places where vfs.listdir is used;

one in  def actions(self):
---
            for f in vfs.listdir(self.dir):
                if os.path.isdir(f):
                    num_subdirs += 1
                if os.path.isfile(f):
                    num_files += 1

---
two in def build(self, arg=None, menuw=None):
---

files       = vfs.listdir(self.dir, include_overlay=True)
        num_changes = mediainfo.check_cache(self.dir)
---
three in Dirwatcher(plugin.DaemonPlugin):
---
for f in os.listdir(vfs.getoverlay(self.dir)):
            if f.endswith('.raw'):
                if f[f[:-4].rfind('.')+1:-4].lower() in config.VIDEO_SUFFIX:
                    ret.append(f)
            else:
                if not f.endswith('.cache')  and not \
                   os.path.isdir(os.path.join(self.dir, f)):
                    ret.append(f)
        return ret
---

It _should_ be something I've messed up somwhere, judging from experience
:), but all I did was checkout, build and install a cvs from two days ago.

Very odd.

/PS

-----Ursprungligt meddelande-----
Fr�n: Dirk Meyer
Till: [EMAIL PROTECTED]
Skickat: 2004-02-04 09:05
�mne: [Freevo-devel] Re: Double everything!  was;SV: double songs all of a
sudden ;)

Peter Svensson wrote:
> OK, movies, mp3 and games all come up double. I tried to do rm -rf
> /var/cache/freevo, which didn't help.
>
> I then tried to rm mmpython.cache and freevo.cache in a specific
directory,
> restarted freevo, but **still double of everything**
>
> I then tried to do another rebuild, guess what?
>
> It feels like some generic code for sorting or presenting things in
general.

I don't see that problem here. Please open directory.py. There is a
'vfs.listdir' somewere. Please print the result to see if it's all
twice there or not.

Dischi
 
-- 
Dancing is a vertical expression of a horizontal desire.


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to