/* returns Dropbox size in GB */ public long getDropboxSize() throws DbxException { long dropboxSize = 0; DbxAccountInfo dbxAccountInfo = dbxClient.getAccountInfo(); // in GB :) dropboxSize = dbxAccountInfo.quota.total / 1024 / 1024 / 1024; return dropboxSize; }
String getAccount() { try { account = "Linked account: " + client.getAccountInfo().displayName; } catch (DbxException ex) { Logger.getLogger(ReadFileFromFolder.class.getName()).log(Level.SEVERE, null, ex); } return account; }