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
Post a Comment