Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: View hidden files?

by poolpi (Hermit)
on Dec 15, 2008 at 08:56 UTC ( [id://730376]=note: print w/replies, xml ) Need Help??


in reply to View hidden files?

#!/usr/bin/perl use strict; use warnings; use File::Find::Rule; my $rule = File::Find::Rule->new; my $pattern = qr/^\.DS_Store/i; $rule->file; $rule->name($pattern); $rule->exec( sub { my ( $shortname, $path, $fullname ) = @_; print $fullname, "\n"; unlink $fullname or warn "Can't delete $fullname\n"; } ); my @files = $rule->in($dir);


hth,
PooLpi

'Ebry haffa hoe hab im tik a bush'. Jamaican proverb

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-03-29 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found