Loading src/main/java/it/inaf/ia2/transfer/service/ArchiveService.java +8 −3 Original line number Original line Diff line number Diff line Loading @@ -255,6 +255,11 @@ public class ArchiveService { List<String> vosPaths = entryDescriptors.stream().map(ed -> ed.getVosPath()) List<String> vosPaths = entryDescriptors.stream().map(ed -> ed.getVosPath()) .collect(Collectors.toList()); .collect(Collectors.toList()); if(vosPaths.size() == 1) { String vosPath = vosPaths.get(0); return vosPath.substring(0, vosPath.lastIndexOf("/")); } String commonParent = null; String commonParent = null; for (String vosPath : vosPaths) { for (String vosPath : vosPaths) { if (commonParent == null) { if (commonParent == null) { Loading Loading
src/main/java/it/inaf/ia2/transfer/service/ArchiveService.java +8 −3 Original line number Original line Diff line number Diff line Loading @@ -255,6 +255,11 @@ public class ArchiveService { List<String> vosPaths = entryDescriptors.stream().map(ed -> ed.getVosPath()) List<String> vosPaths = entryDescriptors.stream().map(ed -> ed.getVosPath()) .collect(Collectors.toList()); .collect(Collectors.toList()); if(vosPaths.size() == 1) { String vosPath = vosPaths.get(0); return vosPath.substring(0, vosPath.lastIndexOf("/")); } String commonParent = null; String commonParent = null; for (String vosPath : vosPaths) { for (String vosPath : vosPaths) { if (commonParent == null) { if (commonParent == null) { Loading