Ścieżka reprezentuje plik lub katalog Java
Files.isDirectory(fileOrFolder)
Outstanding Owl
Files.isDirectory(fileOrFolder)