Testing
This commit is contained in:
parent
3c9be903cc
commit
936c2f92c5
|
@ -12,7 +12,7 @@ public class ClearWS {
|
|||
|
||||
public static void main(String[] args) throws StorageHubException {
|
||||
String context="/gcube/devsec/devVRE";
|
||||
String folderID="2a688014-cf98-464d-aa7c-38f1667f5542";
|
||||
String folderID="0518e4ad-0ef9-4cba-8d4f-8e315146acdd";
|
||||
Boolean recursive = false;
|
||||
|
||||
TokenSetter.set(context);
|
||||
|
@ -24,7 +24,7 @@ public class ClearWS {
|
|||
List<? extends Item> items = folder.list().getItems();
|
||||
System.out.println("Folder "+folder.get().getPath()+" has elements : "+ items.size());
|
||||
|
||||
//folder.delete();
|
||||
folder.delete();
|
||||
|
||||
//
|
||||
// items.forEach(item -> {
|
||||
|
|
|
@ -19,7 +19,7 @@ public class DescribeWSFolder {
|
|||
|
||||
public static void main(String[] args) throws StorageHubException {
|
||||
String context="/gcube/devsec/devVRE";
|
||||
String folderID="2a688014-cf98-464d-aa7c-38f1667f5542";
|
||||
String folderID="0518e4ad-0ef9-4cba-8d4f-8e315146acdd";
|
||||
Boolean recursive = true;
|
||||
|
||||
TokenSetter.set(context);
|
||||
|
@ -42,7 +42,7 @@ public class DescribeWSFolder {
|
|||
List<? extends Item> items =folder.list().includeHidden().withContent().getItems();
|
||||
System.out.println(pad+"Elements : "+items.size());
|
||||
for (Item i : items) {
|
||||
System.out.println(pad+ i.getName() + " [" + i.getPrimaryType()+"]");
|
||||
System.out.println(pad+ i.getName() +"\t"+i.getDescription()+" [" + i.getPrimaryType()+"]");
|
||||
if(i instanceof FolderItem){
|
||||
if(recursive)
|
||||
toReturn+= print(shc.open(i.getId()).asFolder(),pad+"\t",recursive);
|
||||
|
|
Loading…
Reference in New Issue