String domain = args[5];
auth = new NtlmPasswordAuthentication(domain, user, password);
}
// Load the file from the config
InfiniteFile file = null;
if (null != auth) {
file = InfiniteFile.create(fileUrl, auth);
}
else {
file = InfiniteFile.create(fileUrl);
}
// Tests...
boolean doActions = true;
System.out.println("X.1]: " + new Date(file.getDate()));
InfiniteFile[] files = file.listFiles();
System.out.println("X.2]: " + new Date(file.getDate()));
int i = 0;
for (InfiniteFile subFile: files) {
if (null == subFile) break;
if (i >= 10) break;