Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Directory tree script that reads ID3 tags and archive file contents

by bart (Canon)
on Mar 06, 2013 at 20:14 UTC ( #1022084=note: print w/ replies, xml ) Need Help??


in reply to Directory tree script that reads ID3 tags and archive file contents

You should be able to put something together with File::Find (or one of its derivatives, if you prefer that), MP3::Tag or one of its competitors, and Archive::Zip.

The core of the script could be like this:

use File::Find; @ARGV = '.' unless @ARGV; find sub { # all code comes here return unless -f; # $_ is basename, use this because we have chdir'ed to its directo +ry if(/\.txt$/) { say $File::Find::name; } elsif(/\.zip$/) { # process ZIP file } elsif(/\.mp3$/) { # process mp3 file } }, @ARGV;


Comment on Re: Directory tree script that reads ID3 tags and archive file contents
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022084]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-07-13 02:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (245 votes), past polls