Aubin Paul wrote:
> On Thu, Jan 15, 2004 at 04:41:40PM +0100, Dirk Meyer wrote:
>> if mode == 'r':
>>    find it in normal dir or overlay dir
>> else
>>    if file exists in normal dir, reuse file to write.
>>    else create the file:
>>       if config.VFS_ONLY:
>>          create it in vfs
>>       else try to create in normal dir
>>            except create in vfs
>
> I think the vfs stuff always tries to read first; it expects it
> anyway.
>
>> Maybe we should write a function get_write_file which does all this
>> checking. Than we can use this function to get a filename to save and
>> use e.g. normal image storing (is it clear what I mean?)
>
> Sounds reasonable.

I will have some time this weekend. I will do that.

>
>> Something like that. Or a special cache handler. But there more things
>> to do in this file:
>> 
>> 1. Check for loops. Right now softlinks can cause bad endless loops (I
>>    guess). E.g. remember the start time and when mmpython cache is
>>    newer than start time, we have a loop.
>
> I think the recursefolders function knows about softlinks:
> (from recursefolders)
> if vfs.isdir(fullname) and not vfs.islink(fullname):

Yes, _but_ I removed it :-)
I scan recurse by calling the stuff over and over again to get fxd
file sin all subdirs and avoid rescanning. 

>>    o don't add Various for Various info. Just add nothing and if you
>>      like the word 'Various', let the skin insert it when album/artist
>>      is not defined. This is better for i19n support.
>
> That's fine.
>
>>    o When scanning again: compare length.
>>      a. fxd file has no length: write as you write now
>>      b. fxd has length and length is the same: don't write fxd file
>>      c. length differs: there may be new files. If album/artist is now
>>         nothing, remove album/artist (new files may have caused this).
>>         If album/artist is now somthing, don't overwrite, it was the
>>         same before and edited.
>
> ok.

I will do that, too.

>> Or inside the configure dialog: cache/scan disc.
>
> As long as it's not a manual operation, that's fine too.

Both. We should add a menuitem 'cache this dir (and subdirs) now' and
make it also possible to turn on/off auto scanning on insert. To make
this better, we should find a way to avoid rescanning when nothing
changed (e.g. take modification time for the dir).


Dischi

-- 
The Romans didn't find algebra very challenging, because X was always
10.


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