Better exception message.
MODIFY
src/main/java/org/apache/commons/io/file/PathUtils.java
src/main/java/org/apache/commons/io/file/PathUtils.java
@@ -888,7 +888,9 @@ public static Path setReadOnly(final Path path, final boolean readOnly, final Li
permissions.remove(PosixFilePermission.OTHERS_WRITE);
return Files.setPosixFilePermissions(path, permissions);
}
- throw new IOException("No DosFileAttributeView or PosixFileAttributeView for " + path);
+ throw new IOException(
+ String.format("No DosFileAttributeView or PosixFileAttributeView for '%s' (linkOptions=%s)", path,
+ Arrays.toString(linkOptions)));
}
/**

Better exception message.