Changed Files.isDirectory arguments.