On 11/03/05 20:03, Devan Lippman wrote:
On 11/3/05, *Michael T. Dean* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
That's doing the same as the existing code--it strips off all
subdirectory information ( i.e. takes the filename at the end of
the path
only)--right?
correct, did I misinterpret what was wanted?
I forgot that in Qstring it returns an index value so you'll want to
add 1 to the findrev
retval = pathname.mid(pathname.findRev( '/')+1);
I was looking for a way to derive the basename from the pathname even in
the situation where the basename contains directory information
(allowing recordings to be stored in subdirectories of the recordings
directory). So, just taking the filename doesn't work.
Mike
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev