* better error message for MacOS where UserDefinedFileAttributeView is not supported
This commit is contained in:
parent
03ce43e6f9
commit
1f055065d6
|
@ -29,6 +29,9 @@ public class MetaAttributeView extends AbstractMap<String, String> {
|
|||
}
|
||||
|
||||
attributeView = Files.getFileAttributeView(path, UserDefinedFileAttributeView.class);
|
||||
if (attributeView == null) {
|
||||
throw new IOException("UserDefinedFileAttributeView is not supported");
|
||||
}
|
||||
encoding = Charset.forName("UTF-8");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue