From 214b4e374aab59222ad13dc10148e49642bd088c Mon Sep 17 00:00:00 2001 From: x29a <0.x29a.0@gmail.com> Date: Wed, 17 Feb 2016 15:24:39 +0100 Subject: [PATCH] dont traverse into folders in order to support long paths under windows --- cloc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloc b/cloc index 4a524a9..cd4212d 100755 --- a/cloc +++ b/cloc @@ -3484,7 +3484,8 @@ sub make_file_list { # {{{1 # populates global variable @file_list find({wanted => \&files , preprocess => \&find_preprocessor, - follow => $opt_follow_links }, $dir); + follow => $opt_follow_links, + no_chdir => 1 }, $dir); } $nFiles_Found = scalar @file_list; printf "%8d text file%s.\n", plural_form($nFiles_Found) unless $opt_quiet;