This commit is contained in:
gexce
2017-11-07 16:07:27 +01:00
parent 79b71a2e7e
commit 4fdf6182b3
7 changed files with 68 additions and 32 deletions
@@ -40,9 +40,9 @@ public class EntryDownloader implements CommandLineRunner {
/**
* If true, files are downloaded. If false, only the IDs are written into the outputfile.
*/
private final boolean downloadFiles = false;
private final boolean downloadFiles = true;
File outputfile = new File("C:\\Temp\\Migration AH\\files\\entrylist_2017-10-25.txt");
File outputfile = new File("C:\\Temp\\Migration AH\\files\\entrylist_2017-11-07.txt");
@Value("${mam.auth}")
@@ -96,7 +96,6 @@ public class EntryDownloader implements CommandLineRunner {
for (int i = 0; i < entrylist.entries.length; i++) {
if (!downloadFiles) {
// only create a list with all IDs
try {
@@ -108,6 +107,7 @@ public class EntryDownloader implements CommandLineRunner {
else {
Integer entryId = Integer.parseInt(entrylist.entries[i].mediaAssistantId);
File targetDir = new File("E:\\" + entryId);
if (targetDir.exists()) {
log.info("Skip " + entryId + ", target directory already present");