The problem is that the folder has files with the following name.
Same_name.RTF Same_name.RTF.p7s And this method considers the first file as a folder. Persistent and adamant. How can I determine the folder or the file?
- Do not offer to look for a point, there are folders with it.
- The first extension may be different.
- Search goes to the network folder.
Initial option:
String[] dirList = curentFolder.list((File dir, String name) -> return dir.isDirectory());
java.nio.file.Files.isDirectory( Paths.get( "//host/share/folder/filename" ) )- zRrr