FileSystemException:/path/to/file: Unable to get size of extended attribute 'net.filebot.metadata': No data available
This commit is contained in:
parent
761a700db0
commit
972c698380
|
@ -6,8 +6,8 @@ import static net.filebot.Logging.*;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
|
import java.nio.file.FileSystemException;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.NoSuchFileException;
|
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.attribute.UserDefinedFileAttributeView;
|
import java.nio.file.attribute.UserDefinedFileAttributeView;
|
||||||
import java.util.AbstractMap;
|
import java.util.AbstractMap;
|
||||||
|
@ -55,7 +55,7 @@ public class MetaAttributeView extends AbstractMap<String, String> {
|
||||||
buffer.flip();
|
buffer.flip();
|
||||||
|
|
||||||
return UTF_8.decode(buffer).toString();
|
return UTF_8.decode(buffer).toString();
|
||||||
} catch (NoSuchFileException e) {
|
} catch (FileSystemException e) {
|
||||||
// attribute does not exist
|
// attribute does not exist
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue