Oh, that must be it!  I had problems with a) not understanding OVERLAY_DIR
fullt when it got in the cvs and b) see a) .. so .. I sat it to "/"  :)
Which worked great until recently.

I'll just undefine it (I don't use CD/DVD's) and that'll probably solve it.
Sorry for all the trouble.

/PS

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

Peter Svensson wrote:
> OK. Here's the output when I go into my '24' movies folder;
>
> It does list the items twice, but not immediately, but like it's doing
the
> whole list twice
> ! Strange!

That's because of the OVERLAY_DIR. Take a look at src/util/vfs:

| def listdir(directory, handle_exception=True, include_dot_files=False,
|             include_overlay=False):
|     """
|     get a directory listing (including OVERLAY_DIR)
|     """
|     try:
|         if not directory.endswith('/'):
|             directory = directory + '/'
|             
|         files = []
|         if include_dot_files:
|             for f in os.listdir(directory):
|                 if not f in ('CVS', '.xvpics', '.thumbnails', '.pics',
'.', '..'):
|                     files.append(directory + f)
|         else:
|             for f in os.listdir(directory):
|                 if not f.startswith('.') and f != 'CVS':
|                     files.append(directory + f)
| 

I guess if you add a print files here, you will see each file once. 

|         if not include_overlay:
|             return files

include_overlay is set because fxd files may be there.

|         overlay = getoverlay(directory)

now please add a 'print overlay' here. What is your OVERLAY_DIR?
overlay should be OVERLAY_DIR + directory

|         if overlay and os.path.isdir(overlay):
|             for f in ([ overlay + fname for fname in
os.listdir(overlay) ]):
|                 if not os.path.isdir(f) and not f.endswith('.raw'):
|                     files.append(f)

and I guess here you add the files again.



I hope you can find the bug now.


Dischi

-- 
Conversation, n.:
        A vocal competition in which the one who is catching his breath
        is called the listener.


-------------------------------------------------------
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