Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PERL

Perl list files and folders in a directory

use File::Find;

my @content;
find( &wanted, '/some/path');
do_something_with( @content );

exit;

sub wanted {
  push @content, $File::Find::name;
  return;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Perl #list #files #folders #directory
ADD COMMENT
Topic
Name
8+4 =