【发布时间】:2014-08-20 11:03:37
【问题描述】:
我想查找 svn 中的文件数。我知道如何检查它是文件还是目录。
try {
nodeKind = repository.checkPath("", -1);
} catch (SVNException ex) {
Logger.getLogger(Reassignscreen.class.getName()).log(Level.SEVERE, null, ex);
}
if (nodeKind == SVNNodeKind.NONE) {
System.err.println("There is no entry at '" + url + "'.");
commitClient.doMkDir(new SVNURL[]{SVNURL.parseURIDecoded(url)}, "New Folder");
}
像这样有什么方法可以检索 svn 中的文件数。
【问题讨论】: