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. > 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): > 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. > Or inside the configure dialog: cache/scan disc. As long as it's not a manual operation, that's fine too. ------------------------------------------------------- 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-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog
