[mythtv] mutliple storage directories idea... ?

Michael T. Dean mtdean at thirdcontact.com
Thu Nov 3 21:51:36 EST 2005


On 11/03/05 20:03, Devan Lippman wrote:

> On 11/3/05, *Michael T. Dean* <mtdean at thirdcontact.com 
> <mailto:mtdean at thirdcontact.com>> 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


More information about the mythtv-dev mailing list