in reply to Re^2: find () command does not process all symlinks
in thread find () command does not process all symlinks
From Perl Doc - File::Find:
follow_skip
follow_skip==1, which is the default, causes all files which are neither directories nor symbolic links to be ignored if they are about to be processed a second time. If a directory or a symbolic link are about to be processed a second time, File::Find dies.
follow_skip==2 causes File::Find to ignore any duplicate files and directories but to proceed normally otherwise.
So, this looks worth a try:
find({wanted => \&search_tcl_files, follow => 1, follow_skip=>2},$dire +ctory);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: find () command does not process all symlinks
by ypreisler (Novice) on Apr 27, 2024 at 16:08 UTC |