On Wednesday 24 August 2005 00:29, Thorsten Pferdekämper wrote: > +++ freevosrc/mediadb/listing.py 2005-08-23 23:42:18.671581184 +0200 > @@ -186,6 +192,10 @@ > else: > dirname = f[:f.rfind('/')] > basename = f[f[:-1].rfind('/')+1:] > + #PFE > + if len(dirname) == 0: > + dirname = '/' > + log.debug('Dirname %s, Basename %s' % (dirname, basename)) > try: > if not dirname in self.caches: > cache = db.get(dirname)
I wonder what's wrong with dirname, basename = os.path.split(f) which encapsulates that algorithm and is platform-independent? Greetings, Hans ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel