I'm not really familiar with Apache Directory Scanner, but here are my answers.
Harshana Dias wrote:1) Is this the standard wild card syntax that apply for every where? i mean **/ means all directories and */ means only sub directories?
It certainly isn't standard for
everything. But it seems to be reasonably common for modern open-source software, when talking about files.
Harshana Dias wrote:2)How to get files which are in Temp directory directly and inside sub directoroes only (not again inside those sub directories like we use **)
I would try
The reason they use an array there is that they want to allow multiple entries (and they're still in the pre-JDK 5 dark ages). I would assume that if you put multiple entries into the array, they will be used.
Harshana Dias wrote:3)Now we can see when using DirectoryScanner we have base directory and then the relavanat wildcard syntax. But suppose we have wildcards in middle of the base directoy too. If so how can we use the DirectoryScanner?
I would use the DirectoryScanner twice, or more. The first time, set the base directory to something like "C:/", and search for directories that match the
pattern with a wildcard. Then use DirectoryScanner once more for each matching directory you found, setting that directory as base directory.