Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Yusuf ..
10 years agoNew member | Level 1
Exception in thread "main" com.dropbox.core.NetworkIOException: Read timed out
The code I'm running is this;
public class test { static final String ACCESS_TOKEN = "<REDACTED>"; public static void main(String args[]) throws DbxException, IOException, InterruptedException ...
Greg-DB
Dropbox Community Moderator
10 years agoHi Yusuf, I'm glad to hear you got that working already.
I'm not sure if I understand your follow up question though, can you elaborate? If you mean you need to distinguish between files and folders given a Metadata object, you can do so by checking the class. FileMetadata, FolderMetadata, and DeletedMetadata are subclasses of metadata. Here's a sample of checking between them:
By the way, I redacted your access token, but for the sake of security, you should disable it now. You can do so by revoking access to the app entirely, if the access token is for your account, here:
https://www.dropbox.com/account/security
Or, you can disable just this access token using the /disable_access_token endpoint:
https://www.dropbox.com/developers/core/docs#disable-token
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!