changed the interaction with Zenodo since the API chenaged

This commit is contained in:
Miriam Baglioni 2023-04-19 09:40:45 +02:00
parent f738db860a
commit b6e0c7d660
3 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ public class MakeTar implements Serializable {
String pathString = p.toString(); String pathString = p.toString();
String entity = pathString.substring(pathString.lastIndexOf("/") + 1); String entity = pathString.substring(pathString.lastIndexOf("/") + 1);
MakeTarArchive.tarMaxSize(fileSystem, pathString, outputPath + "/" + entity, entity, gBperSplit); MakeTarArchive.tarMaxSize(fileSystem, pathString, outputPath + "/" + entity, entity, gBperSplit, true);
} }
} }

View File

@ -83,7 +83,7 @@ public class SendToZenodoHDFS implements Serializable {
String name = pString.substring(pString.lastIndexOf("/") + 1); String name = pString.substring(pString.lastIndexOf("/") + 1);
FSDataInputStream inputStream = fileSystem.open(p); FSDataInputStream inputStream = fileSystem.open(p);
zenodoApiClient.uploadIS(inputStream, name, fileStatus.getLen()); zenodoApiClient.uploadIS(inputStream, name);
} }

View File

@ -73,7 +73,7 @@ public class ZenodoUploadTest {
// File f = new File("/tmp/" + community_name); // File f = new File("/tmp/" + community_name);
FSDataInputStream inputStream = fs.open(fileStatus.getPath()); FSDataInputStream inputStream = fs.open(fileStatus.getPath());
System.out.println(client.uploadIS(inputStream, community_name, fileStatus.getLen())); System.out.println(client.uploadIS(inputStream, community_name));
} }
@ -128,7 +128,7 @@ public class ZenodoUploadTest {
// File f = new File("/tmp/" + community_name); // File f = new File("/tmp/" + community_name);
FSDataInputStream inputStream = fs.open(fileStatus.getPath()); FSDataInputStream inputStream = fs.open(fileStatus.getPath());
System.out.println(client.uploadIS(inputStream, community_name, fileStatus.getLen())); System.out.println(client.uploadIS(inputStream, community_name));
} }