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

* fix for relative symlinks

This commit is contained in:
Reinhard Pointner 2014-01-08 19:29:20 +00:00
parent d63fca6787
commit 0287eac77d

View File

@ -21,7 +21,11 @@ public class MetaAttributeView extends AbstractMap<String, String> {
public MetaAttributeView(File file) throws IOException {
Path path = file.toPath();
while (isSymbolicLink(path)) {
path = readSymbolicLink(path);
Path link = readSymbolicLink(path);
if (!link.isAbsolute()) {
link = path.getParent().resolve(link);
}
path = link;
}
attributeView = Files.getFileAttributeView(path, UserDefinedFileAttributeView.class);