defaultfilemonitor

Why does DefaultFileMonitor keep listing the files in my FTP location in a loop?

An edited version of the java code: FileSystemOptions opts = new FileSystemOptions(); DefaultFileSystemConfigBuilder.getInstance().setUserAuthenticator(opts, auth); // fileToMonitor is the FTP folder. LOG.debug("Trying to resolve file " + fileToMonitor + "..."); FileObject fo = fileSystemManager.resolveFile(fileToMoni...