Jemand zu Hause?Leser: 18
Win32::File an. Damit kannst du auf einfache Art und Weise HIDDEN und SYSTEM (und ...) Dateien herausfiltern.
Win32-File ist dein Freund ;)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use strict; use warnings; use Win32::File qw/GetAttributes HIDDEN SYSTEM/; use File::Find; find( \&foobar, 'D:\perl' ); sub foobar { my $file = $_; my $attributes = 0; GetAttributes( $file, $attributes ); return if $attributes & ( HIDDEN | SYSTEM ); print "$file\n"; }
use strict; use warnings;