/** * Resolves symlink, if the given file is a symlink on a Unix System. * Otherwise return null. * * @param targetPath * @param file * @return String the resolved file path * @throws hudson.util.jna.Native.ExecutionError */ public String resolveSymlink(File file) throws NativeAccessException { ensureUnixSupport(NativeFunction.RESOLVE_LINK); return nativeUnixSupport.resolveSymlink(file); }