1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* better error message for MacOS where UserDefinedFileAttributeView is not supported

This commit is contained in:
Reinhard Pointner 2014-04-17 15:32:24 +00:00
parent 03ce43e6f9
commit 1f055065d6

View File

@ -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");
}