Discussions
-
[Java SDK V2] How to distinguish if Metadata is file or folder
Hello, I need to distunguish, if Metadata I got is file or folder. Is there any recommended way, how to do this? I came up just with using instanceof operator, here is a snippet from integration tests: final Metadata fileMetadata = client.files().getMetadata(destFile); assertTrue(fileMetadata instanceof FileMetadata);…
-
[Java SDK V2] too_many_write_operations while uploading
Hello, we are uploading a quite a lot of files in 4-6 threads and it is very likely, that other users write into our repository at the same time. Today we started to get "too_many_write_operations" error: Caused by: com.dropbox.core.RateLimitException: {"error_summary": "too_many_write_operations/.", "error": {"reason":…
-
[Java SDK V2] What happend to forgotten partially uploaded files?
Let's assume that I start uploading some files do Dropbox via Java SDK v2 by command like this sessionId = tested.files().uploadSessionStart() .uploadAndFinish(in, CHUNKED_UPLOAD_CHUNK_SIZE) .getSessionId(); dbxCliend.files().uploadSessionAppendV2(cursor) .uploadAndFinish(in, CHUNKED_UPLOAD_CHUNK_SIZE) But then I will…
-
[Java SDK V2] How to do batch upload?
Hello, I am trying to make Batch upload work by using JAVA SDK v2. I read this documentation and tried to perform a batch upload. There is a general algorithm, which should use direct HTTP calls. 1. First point sais "Group files that are being uploaded to into one or more batches....". I don't know, what exactly is Group…
-
What exactly is namespace
Hello, I read this documentation and I did not understand, what exactly is meant by "namespace" which is being locked. The documentation sais this: "You can think of a namespace as a collection of files and folders in the internal representation of the Dropbox file system. Each user’s private Dropbox folder maps to a root…
-
[Java SDK V2] How to find out whether file exists or not
Spoiler Hello, we are migrating from Java SDK API V1 to Java SDK V2 and I am writing some integration tests. For example, after I delete a file I need to check, that this file is no longer present on Drobpox or after upload I need to check, that file is there. What is the recommended way, how to do that? My current ugly…