changed the interaction with Zenodo since the API chenaged
This commit is contained in:
parent
f738db860a
commit
b6e0c7d660
|
@ -66,7 +66,7 @@ public class MakeTar implements Serializable {
|
|||
String pathString = p.toString();
|
||||
String entity = pathString.substring(pathString.lastIndexOf("/") + 1);
|
||||
|
||||
MakeTarArchive.tarMaxSize(fileSystem, pathString, outputPath + "/" + entity, entity, gBperSplit);
|
||||
MakeTarArchive.tarMaxSize(fileSystem, pathString, outputPath + "/" + entity, entity, gBperSplit, true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ public class SendToZenodoHDFS implements Serializable {
|
|||
String name = pString.substring(pString.lastIndexOf("/") + 1);
|
||||
|
||||
FSDataInputStream inputStream = fileSystem.open(p);
|
||||
zenodoApiClient.uploadIS(inputStream, name, fileStatus.getLen());
|
||||
zenodoApiClient.uploadIS(inputStream, name);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ public class ZenodoUploadTest {
|
|||
|
||||
// File f = new File("/tmp/" + community_name);
|
||||
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);
|
||||
FSDataInputStream inputStream = fs.open(fileStatus.getPath());
|
||||
System.out.println(client.uploadIS(inputStream, community_name, fileStatus.getLen()));
|
||||
System.out.println(client.uploadIS(inputStream, community_name));
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue