Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2016-12-05 05:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (72 votes). Check out past polls.