Hello again!
I’m now using the File API, and maybe I’m doing something wrong, but I can’t list all the files of my storage. I do the following, and the files/folders appear, but only 10 items are shown. If I do the same inside a folder, the same occurs, only 10 items are shown, but no more:
private void getFiles() {
Backendless.Files.listing("/", "*", true, new AsyncCallback<BackendlessCollection<FileInfo>>() {
@Override
public void handleResponse(BackendlessCollection<FileInfo> response) {
Iterator<FileInfo> filesIterator = response.getCurrentPage().iterator();
while (filesIterator.hasNext()) {
FileInfo file = filesIterator.next();
String URL = file.getURL();
String publicURL = file.getPublicUrl();
Date createdOn = new Date(file.getCreatedOn());
String name = file.getName();
Log.d("Files/Folders", URL + " " + publicURL + " " + createdOn + " " + name);
}
}
@Override
public void handleFault(BackendlessFault fault) {
Log.d("Error", "An error has occurred.");
}
});
}