ISVNDirEntry[] dirEntry = null; try { dirEntry = svnClient.getList(url,SVNRevision.HEAD,false);
ISVNDirEntry dirEntry; try { dirEntry = svnClient.getDirEntry(url,SVNRevision.HEAD);
    public ISVNRemoteResource getLatestRemoteResource() throws SVNException {        // even if file is not managed, there can be a corresponding resource                // first we get the url of the resource        SVNUrl url = getUrl();                ISVNClientAdapter svnClient = getRepository().getSVNClient();        ISVNDirEntry[] dirEntry = null;        try {            dirEntry = svnClient.getList(url,SVNRevision.HEAD,false);        } catch (SVNClientException e) {            throw new SVNException("Can't get latest remote resource for "+resource.toString());           }                if (dirEntry.length == 0)            return null; // no remote file        else        {            if (dirEntry[0].getNodeKind() == SVNNodeKind.FILE)                return new RemoteFile(                    null,  // we don't know its parent                    getRepository(),                    url,                    SVNRevision.HEAD,                    dirEntry[0].getHasProps(),                    dirEntry[0].getLastChangedRevision(),                    dirEntry[0].getLastChangedDate(),                    dirEntry[0].getLastCommitAuthor()                );             else                return new RemoteFolder(                    null,  // we don't know its parent                    getRepository(),                    url,                    SVNRevision.HEAD,                    dirEntry[0].getHasProps(),                    dirEntry[0].getLastChangedRevision(),                    dirEntry[0].getLastChangedDate(),                    dirEntry[0].getLastCommitAuthor()                );                        }    }