in reply to Re: Win32::Perms Remove method
in thread Win32::Perms Remove method
I never noticed this SetRecurse method. But the core of the problem remain. loves Lor*my $root = 'c:/prova/'; my @dirs = ($root); my @files; for my $path (@dirs){ opendir ( DIR, $path ) or next; # skip dirs we can't read while (my $file = readdir DIR) { next if $file eq '.' or $file eq '..';# skip dot files next if -l $path.$file; # skip sym links if ( -d $path.$file ) { push @dirs, $path.$file.'/'; # add dir to list } else { push @files, $path.$file; # add file to list } } closedir DIR; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Win32::Perms Remove method
by BrowserUk (Patriarch) on Jun 15, 2004 at 10:03 UTC |