Uploads
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user