Fix isSymlink performance on Java6/Win

This commit is contained in:
Roman Shevchenko
2012-03-19 11:34:20 +01:00
parent bbbc8644e2
commit df78efbc85
@@ -88,8 +88,11 @@ public class FileSystemUtil {
}
public static boolean isSymLink(@NotNull final String path) {
final FileAttributes attributes = getAttributes(path);
return attributes != null && attributes.isSymlink;
if (SystemInfo.areSymLinksSupported) {
final FileAttributes attributes = getAttributes(path);
return attributes != null && attributes.isSymlink;
}
return false;
}
public static boolean isSymLink(@NotNull final File file) {