Dropbox Core API Java - cannot get folder size in metadata -


i using dropbox core api in java create app. when try metadata folder, field's name, iconname , mighthavethumbnail, contrary python, lists details. missing or java api expose limited information?

i'm trying print metadata via code:

dbxentry listing = client.getmetadata("/testfolder");<br> system.out.println(listing.tostringmultiline()); 

to rest of metadata, you'll want cast dbxentry.folder:

dbxentry entry = client.getmetadata("/testfolder"); if (entry instanceof dbxentry.folder) {     dbxentry.folder folder = (dbxentry.folder)entry;      system.out.println(folder.tostringmultiline()); } 

but olivier pointed out, folders not have sizes in dropbox. if you're interested in how big files within folder are, you'll have sum sizes yourself.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -