Menu

#11 recursive="false" scans 1st level subdir

runtime
open
5
2002-07-27
2002-07-27
Anonymous
No

Even with recurisve set to false, the first level of
subdirectories is scanned and files matching the mask
are processed. Recursive false should cause only files
in the base directory to be processed.

A fix is to make the following change at line 142
of DirWalkerImpl.java:

Change:

all\_dirs.addAll\(getAllDirs\(path\_el\)\);

To:

if\(recursive\) \{
all\_dirs.addAll\(getAllDirs\(path\_el\)\);
\}

With the above change, only files in the src directory
will be processed. Files in any subdirectories of the
src directory will be ignored (when recursive="false").

Discussion


Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →