int uploaded = 0;
for (File file : folder.listFiles()) {
if (!file.isDirectory()) {
counters[0]++;
printLine("[" + counters[0] + "/" + counters[1] + "] " + file.getAbsolutePath());
DocumentListEntry entry = uploadFile(file, remoteFolder, remoteDocs);
if (entry != null) {
printLine(" - Uploaded: " + entry.getResourceId());
uploaded++;
}
}
}
for (File file : folder.listFiles()) {
if (isOptionRecursive() && file.isDirectory()) {
DocumentListEntry currentRemoteFolder = null;
if (!isOptionWithoutFolders()) {
currentRemoteFolder = documentListFindByTitle(getFolderName(file), remoteSubFolders);
if (currentRemoteFolder == null) {
try {
if (remoteFolder == null) {