I have very strange issue. When I want to list files from shared folder (windows server 2003), my code blocks on listFiles() method (no exception, no ends, just blocks on that line). I am using Common IO 2.3 library.
When I create the same application in Delphi it successfully lists the files (using the same windows user as java).
Is there any restrictions on shared folder in java?
Java code:
File folder = new File(args[0]);
List<File> files = (List<File>) FileUtils.listFiles(folder, TrueFileFilter.INSTANCE, new RegexFileFilter("^(?!_).+"));//new RegexFileFilter("^((?!\\_).)*$")