Looking for a piece of python...
    Jerry McBride 
    mcbrides9
       
    Sun May 22 14:35:22 PDT 2005
    
    
  
On Sunday 22 May 2005 02:48 pm, Bruce Marshall wrote:
> On Sunday 22 May 2005 01:56 pm, Jerry McBride wrote:
> > Anyone have a piece of python that processes directories recursively?
> >
> > I've a vast mp3 collection that is broken up into hundreds of directories
> > and... now... I need to do some file processing on them.
> >
> > Anyone?
>
> I'm looking in O'Reilly's "Progrraming Python"  (for the first time) and
> they show an  os.path.walk   function
>
> "To make it easy to apply an operation to all files in a tree, Python also
> comes with a utility that scans trees for us and runs a provided function
> at every directory along the way."
>
> That may not be what you want, but I will read the section for something
> that will let you traverse trees.
That would work very nicely. Thanks for the heads up, Bruce.
    
    
More information about the Linux-users
mailing list