in reply to Re: how to get the all the subdirectories path from the directory
in thread how to get the all the subdirectories path from the directory
As for security concerns, you can do:
That's as portable as perl 5.8.x and the command-line "find" util (i.e., runs anywhere). I actually prefer using this approach over File::Find and its derivatives, because the perl modules tend to go a lot slower on really big directory trees, whereas the compiled "find" util is as fast as you can get.open( $fh, "-|", "find", "/start/path", "-type", "d" ); while (<$fh>) { ... }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: how to get the all the subdirectories path from the directory
by Anonymous Monk on Nov 06, 2013 at 02:32 UTC |