Stack<ProtocolFile> files = new Stack<ProtocolFile>();
files.add(frs.getCurrentFile(remoteSite));
// start crawling
while (!files.isEmpty()) {
ProtocolFile file = files.peek();
try {
// if directory, then add its children to the crawl list
if (file.isDirectory()) {
// get next page worth of children
List<ProtocolFile> children = frs.getNextPage(file,
new ProtocolFileFilter() {
public boolean accept(ProtocolFile pFile) {