From 972c69838025174880d76a6cd7a118ebcea423c4 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 2 Apr 2017 02:29:15 +0800 Subject: [PATCH] FileSystemException:/path/to/file: Unable to get size of extended attribute 'net.filebot.metadata': No data available --- source/net/filebot/MetaAttributeView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/MetaAttributeView.java b/source/net/filebot/MetaAttributeView.java index 364e3531..22afa8e5 100644 --- a/source/net/filebot/MetaAttributeView.java +++ b/source/net/filebot/MetaAttributeView.java @@ -6,8 +6,8 @@ import static net.filebot.Logging.*; import java.io.File; import java.io.IOException; import java.nio.ByteBuffer; +import java.nio.file.FileSystemException; import java.nio.file.Files; -import java.nio.file.NoSuchFileException; import java.nio.file.Path; import java.nio.file.attribute.UserDefinedFileAttributeView; import java.util.AbstractMap; @@ -55,7 +55,7 @@ public class MetaAttributeView extends AbstractMap { buffer.flip(); return UTF_8.decode(buffer).toString(); - } catch (NoSuchFileException e) { + } catch (FileSystemException e) { // attribute does not exist return null; }