特定のフォルダ内のファイルをループせずに反復する最良の方法は何ですか? つまり、for ループは、すべてのファイルが 1 回チェックされると終了します。
私のコード例(ループあり):
File dir = new File(svnClient.getDestinationPath().getAbsolutePath());
for (File child : dir.listFiles())
{
report.report("File name: " + child.getName());
}