mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix isSymlink performance on Java6/Win
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user